I've a (perhaps too) basic questions that has been bugging me for a while. Manipulate seems to ignore global assignments. For instance the following does not result in the obvious output one would expect:
a = x*b;
Manipulate[Plot[a, {x, 0, 1}], {b, 1, 2}].
Instead, to had a 45 degree line, one had to redefine the a object within manipulation:
Manipulate[x*b;Plot[a, {x, 0, 1}], {b, 1, 2}].
Is there a way to have Manipulate to use the global assignment a=x*b?
Thanks!!
Manipulatebelow the table with options there is a bullet:Manipulate generates a DynamicModule object, with the variables u, v, etc. specified as local.– Kuba Sep 13 '13 at 15:09Manipulateand you will see what is going on. – Yves Klett Sep 13 '13 at 15:53