0
$\begingroup$

I have a function $f(x,y,t)$ that depends on the spatial variables "x" and "y" and the temporal variable "t". how can I do an animation in mathematica that shows the movement of the surface over time? in what formats this animation can be saved? Can you give me an example?

$\endgroup$
  • 1
    $\begingroup$ Can you give an example f[x, y, t] that you want to animate? $\endgroup$ – J. M. is away Sep 8 '17 at 4:01
  • $\begingroup$ Yes, for example: f[x, y, t] = (Exp[x + t] - Exp[x - t]) Cos[y] $\endgroup$ – Julio Abraham Mendoza Fierro Sep 8 '17 at 4:23
  • 1
    $\begingroup$ Perhaps it is also worth checking out the description for the Animate function $\endgroup$ – Dunlop Sep 8 '17 at 4:26
2
$\begingroup$

Something like this?

f[x_, y_, t_] = (Exp[x + t] - Exp[x - t]) Cos[y]

Animate[Plot3D[f[x, y, t], {x, 0, 12}, {y, 0, 12}], {t, 0, 1}]



Animate[Plot3D[f[x, y, t], {x, 0, 12}, {y, 0, 12}, PlotRange -> {-5.9, 9.9}], {t, 0, 1}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.