フィルターのクリア

how animate change in 2D graphs?

2 ビュー (過去 30 日間)
Elizabeth
Elizabeth 2023 年 1 月 1 日
コメント済み: Star Strider 2023 年 1 月 1 日
I am new to matlab as its being taught in my degree.
I have 6 diffrent graphs showing a beach profile over the span of 6 years. They are 2D graphs and I want to have them play one after the other to show the beach profile chaning in a video rather then looking at each graph individually.
Is this possible? its not something we have been taught yet but I really want to get a good grade in an assignement and im intrested in expanding my knowledge.
thank you for any help!
  1 件のコメント
Star Strider
Star Strider 2023 年 1 月 1 日
See the documentation and examples in Animation

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

回答 (2 件)

Cameron
Cameron 2023 年 1 月 1 日
I would use animatedline to achieve this. Here's an example from the documentation.
h = animatedline;
axis([0,4*pi,-1,1])
x = linspace(0,4*pi,1000);
y = sin(x);
for k = 1:length(x)
addpoints(h,x(k),y(k));
drawnow
end

Image Analyst
Image Analyst 2023 年 1 月 1 日
See attached demo
% Demo to create a movie file from a Gaussian and then optionally save it to disk as an avi video file.

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by