Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Dynamic updating of variables in Manipulate' topicStudent Support Forum > General > Archives > "Dynamic updating of variables in Manipulate"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Dynamic updating of variables in Manipulate')
Author Date Posted
Dynamic updating of variables in Manipulate Jbb 07/07/12 4:11pm
Re: Dynamic updating of variables in Manipulate Michael 07/07/12 10:08pm
Re: Dynamic updating of variables in Manipulate yehuda 07/08/12 2:59pm
Re: Re: Dynamic updating of variables in Manipu... JBB 07/15/12 10:19am
Re: Re: Re: Dynamic updating of variables in Ma... JBB 07/16/12 5:00pm
Re: Dynamic updating of variables in Manipulate Jbb 07/09/12 00:54am
Re: Dynamic updating of variables in Manipulate JBB 07/18/12 5:39pm
Next Comment >Help | Reply To Topic