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 Kommentar

Xiaoqing Cai
Xiaoqing Cai am 16 Aug. 2019
Halloween,could you please share me with your Typhoon model thanks

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Kevin Phung
Kevin Phung am 23 Jan. 2019
Bearbeitet: Kevin Phung am 23 Jan. 2019

0 Stimmen

each update of the plot can be shown with
drawnow
https://www.mathworks.com/help/matlab/ref/drawnow.html

Weitere Antworten (1)

Image Analyst
Image Analyst am 23 Jan. 2019

0 Stimmen

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.

Kategorien

Mehr zu Earth and Planetary Science finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by