How do I create a video from an animated plot?

61 ビュー (過去 30 日間)
Moein M
Moein M 2020 年 6 月 11 日
コメント済み: Image Analyst 2020 年 8 月 18 日
I want to create a video of the animated plot generated by this code:
clc
clear
close all
bb = importdata('data.txt');
xx = bb(:,1);
yy = bb(:,2);
plot(xx,yy)
xlabel('Time (Second)');
ylabel('Acceleration (Centimeter/Secon^2)');
curve = animatedline('Color', 'r');
grid off;
for i = 1:length(xx)
addpoints(curve,xx(i), yy(i));
drawnow limitrate
pause(0.0005)
end
Any thoughts on how to do that?
Thank you.
  1 件のコメント
Image Analyst
Image Analyst 2020 年 8 月 18 日
Not sure what your edit was (maybe you removed 'data.txt' attachment???), but the answers below should still work fine. Why don't you try and accept my Answer below?

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

採用された回答

Image Analyst
Image Analyst 2020 年 6 月 13 日
Here's a demo where I made a movie from a surf() plot where the plot changed at each frame.
  1 件のコメント
Moein M
Moein M 2020 年 6 月 13 日
Thank you

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

その他の回答 (1 件)

KSSV
KSSV 2020 年 6 月 11 日
  1 件のコメント
Moein M
Moein M 2020 年 6 月 13 日
Thank you

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

カテゴリ

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