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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -