How can I animate plotted data over time?

Hi all
I'm training my self on climate models, therefore, I plotted the contour maps, wind direction in 18 layers (6-hour interval) .
How can I display the trajectory of the typhoon I'm working with as animated clips?

1 comentario

Xiaoqing Cai
Xiaoqing Cai el 16 de Ag. de 2019
Halloween,could you please share me with your Typhoon model thanks

Iniciar sesión para comentar.

 Respuesta aceptada

Kevin Phung
Kevin Phung el 23 de En. de 2019
Editada: Kevin Phung el 23 de En. de 2019
each update of the plot can be shown with
drawnow
https://www.mathworks.com/help/matlab/ref/drawnow.html

Más respuestas (1)

Image Analyst
Image Analyst el 23 de En. de 2019

0 votos

See attached demo where I made a movie from a figure that was changing over time. I used surf() to create a surface and then take an image of that and embed it into the movie. That was in a loop where I changed the surface at every iteration. You could take a snapshot of your new line plot or whatever. When you play the movie, it shows the surface moving/undulating.

Categorías

Más información sobre Earth and Planetary Science en Centro de ayuda y File Exchange.

Productos

Versión

R2017b

Preguntada:

el 23 de En. de 2019

Comentada:

el 16 de Ag. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by