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$
3
  • 1
    $\begingroup$ Can you give an example f[x, y, t] that you want to animate? $\endgroup$ Sep 8, 2017 at 4:01
  • $\begingroup$ Yes, for example: f[x, y, t] = (Exp[x + t] - Exp[x - t]) Cos[y] $\endgroup$ Sep 8, 2017 at 4:23
  • 1
    $\begingroup$ Perhaps it is also worth checking out the description for the Animate function $\endgroup$
    – Dunlop
    Sep 8, 2017 at 4:26

1 Answer 1

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 and acknowledge you have read our privacy policy.

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