MathGroup Archive 2008

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

Search the Archive

Re: Help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92307] Re: [mg92278] Help
  • From: "Michael Latham" <Michael.Latham at Colorado.EDU>
  • Date: Sat, 27 Sep 2008 06:50:23 -0400 (EDT)
  • References: <200809261024.GAA09914@smc.vnet.net>

This works

Clear[a, x, t]
a[x_, t_] := Sin[34*x - 2*t]
Animate[Plot[a[x, t], {x, 0, 2*Pi}], {t, 0, 5}]

-Mike

On Fri, Sep 26, 2008 at 6:24 AM, Rui <rui.rojo at gmail.com> wrote:

> I'm new in Mathematica. I have version 6.0.3.0.
> I'm trying to create an animation or a plot, something simple. I found
> Animate[].
> I can make it work fine by doing something "like"
> Animate[Plot[Sin[34*x-2*t], {x, 0, 2*pi}], {t, 0, 5} ]
> But if i have my expression stored in a variable i can't...
> a = Sin[34*x-2*t];
> Animate[Plot[a, {x, 0, 2*pi}], {t, 0, 5} ]
> leaves the animation blank.
>
> I tries all variants I could think of and I always fail. I actually
> wanted to create several animations of expressions i have stored in a
> list, and I could do it one by one manually but I wanted to learn the
> proper way and I'm frustrated already. Any ideas?
>
>


  • References:
    • Help
      • From: Rui <rui.rojo@gmail.com>
  • Prev by Date: Re: How to do symbolic matrix manipulations
  • Next by Date: Re: Function changes in a program
  • Previous by thread: Help
  • Next by thread: Re: Help