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 件のコメント

Xiaoqing Cai
Xiaoqing Cai 2019 年 8 月 16 日
Halloween,could you please share me with your Typhoon model thanks

サインインしてコメントする。

 採用された回答

Kevin Phung
Kevin Phung 2019 年 1 月 23 日
編集済み: Kevin Phung 2019 年 1 月 23 日

0 投票

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2019 年 1 月 23 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeEarth and Planetary Science についてさらに検索

製品

リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by