Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: problem with Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126554] Re: problem with Manipulate
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Sat, 19 May 2012 05:42:27 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201205180927.FAA17173@smc.vnet.net>

It is caused by scoping.  "Manipulate generates a DynamicModule
object, with the variables u, v, etc. specified as local. "

tmp := Plot[Sin[x (1 + a x)], {x, 0, 6}];

Manipulate[a = b; tmp, {b, 0, 2}]


Bob Hanlon


On Fri, May 18, 2012 at 5:27 AM, Physics is Everything....Almost
<fizzycist at knology.net> wrote:
>
> Why does    Manipulate[ Plot[Sin[x (1+ a x)], {x,0,6} ], (a,0,2} ] work....
> BUT..... the following doesn't....
> tmp = Plot[Sin[x (1+ a x)], {x,0,6} ]
> Manipulate[ tmp , (a,0,2}]
> I checked Attributes of Manipulate and saw   HoldAll......but Hold what??
> thanks.....Jerry Blimbaum
>



  • Prev by Date: Re: problem with Manipulate
  • Next by Date: Re: clearing a variable with a dummy subscript
  • Previous by thread: problem with Manipulate
  • Next by thread: Re: problem with Manipulate