Re: Problem with animate
- To: mathgroup at smc.vnet.net
- Subject: [mg47366] Re: Problem with animate
- From: "Phil Light" <usenet at kaysgardens.OppositeOfMinus.com.invalid>
- Date: Wed, 7 Apr 2004 03:16:20 -0400 (EDT)
- References: <c4rd13$m9n$1@smc.vnet.net> <c4u28t$9c7$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Bob Hanlon wrote:
> As you stated, n has a value. Either clear n before using it as an
> iterator or use a module to make it local.
>
> Module[{n}, Animate[Plot[Sin[n x],{x,0,2 Pi}],{n,1,6,1}]];
You're quite right - thanks for that. However even using an uninitialised or
local variable wasn't working.
I haven't got a clue why but it's working fine now :)
Thanks,
Phil