Mathematica manipulate variables that are already defined -
is possible use mathematica's manipulate change variables have been declared?
example:
changeme = 8; p = somesortofplot[changeme]; manipulate[show[p],{changeme,1,10}]
the basic idea want make plot changable value declare outside of manipulate.
any ideas?
one option use dynamic[] , localizevariables -> false.
example:
changeme = 8; p[x_] := plot[sin[t], {t, 1, x}]; { manipulate[p[changeme], {changeme, 2, 9}, localizevariables -> false], dynamic[changeme] (* line not needed, inserted see value *) }
evaluating "changeme" after manipulate action retain last manipulate value.
hth!
Comments
Post a Comment