MathGroup Archive 2009

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

Search the Archive

Re: Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102355] Re: [mg102323] Manipulate
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Thu, 6 Aug 2009 06:33:03 -0400 (EDT)
  • References: <200908050945.FAA18285@smc.vnet.net>

Hi,

yes, one easy way to set global values is just straight forward:


f[x_, m_, n_] := m x + n;
Manipulate[
 a = m;
 b = n;
 Plot[f[x, m, n], {x, 0, 10}, PlotRange -> {Automatic, {0, 10}}],
 {m, 1, 2}, {n, 0, 3}
 ]

Check the values of a and b.

Cheers
Patrick

On Wed, 2009-08-05 at 05:45 -0400, 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
> 
> 



  • References:
    • Manipulate
      • From: Youness Eaidgah <y.eaidgah@gmail.com>
  • Prev by Date: Re: ListContourPlot3D bug?
  • Next by Date: Re: Package won't load after v.7 upgrade
  • Previous by thread: Re: Manipulate
  • Next by thread: Re: Manipulate