I'm trying to save some settings and results from Manipulate
, and I want to be able to save them to different variable names. The code I have is something like
Manipulate[x,
{{x, x1, "value"}, ControlType -> InputField},
{{variablename, defaultname, "variable name"}, ControlType -> InputField},
Button["save", variablename = x]]
So, the functionality I want is that I can write a variable name into the second InputField
, hit save, and have the value of x
assigned to a variable of that name.
However as it stands, hitting save only updates the value of the variablename
variable within Manipulate
.
Any help appreciated.