| Author |
Comment/Response |
Jbb
|
07/07/12 4:11pm
Hi,
I'm trying to update dynamically with Manipulate a variable in a plot. It works fine when the variable is directly in the function of the Plot, but it is Not updated if the variable "a" is in a function called by the plot (which is the result of a DSolve). What should I do to get it updated?
A simple example would be:
a=1
s:={{y->Function[{x},C[1]+Sin[a x]]}}
Manipulate[Plot[{Sin[a x],{Evaluate[y[x]/.s/.C[1]->Range[-5,-2]]}},{x,-10,10}],{{a,1},0,2}]
The Sin is correctly updated with changes in "a", but "s" functions are not updated.
Thanks for any help,
Jbb
URL: , |
|