MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102362] Re: Manipulate
  • From: dh <dh at metrohm.com>
  • Date: Fri, 7 Aug 2009 05:27:53 -0400 (EDT)
  • References: <h5bk7r$hne$1@smc.vnet.net>


Youness Eaidgah wrote:

> Dear all,

> 

> I am want to use =93Manipulate=94 to find the most interesting values of a

> number of variables. For example (it is just an example. They real function

> is much more complex):

> 

> F[n_,m_,x_]:=x^n+m;

> 

> Manipulate[Plot[F[n,m,x],{x,0,10}],{n,0,5},{m,0,9}]

> 

> This Manipulate gives me a plot with two sliders, one for =93n=94 and one of

> =93m=94. Is it possible to export the value of =93n=94 and =93m=94 from manipulate

> interactive plot to the rest of program. Let=92s say, at the following of

> program, I have a line like this:

> 

> j=n+m

> 

> I want to use the values of "n" and "m" form manipulate here. So, once I

> change the value of =93n=94 or =93m=94 through their sliders, the value of =93j=94 needs

> to be updated. Is it ever possible? Thank you for being helpful.

> 

> All the bests,

> 

> Youness

> 

> 



Hi Youness,

simply set j inside the manipulate:

===============================

Manipulate[j = m + n;

  Plot[F[n, m, x], {x, 0, 10}], {n, 0, 5}, {m, 0, 9}]

Print["j=", Dynamic[j]];

===============================

Daniel




  • Prev by Date: Re: List of position-specifying functions
  • Next by Date: Re: Linear Interpolation problems
  • Previous by thread: Re: Manipulate
  • Next by thread: Re: Slow start to AstronomicalData[]David Bailey,http://www.dbaileyconsultancy.co.uk