create a gif or video using this sequence of figures
77 ビュー (過去 30 日間)
古いコメントを表示
I want to create a gif or video using this sequence of figures:
plot of figure 1
pause(0.8);
hold on;
plot of figure 2;
pause(0.8);
plot of figure 3;
pause(0.8);
plot of figure 4;
pause(0.8);
hold off
Is it possible ?
7 件のコメント
Walter Roberson
2020 年 12 月 27 日
Your question asked to create a gif or a video, and the above shows creating a gif.
You can use VideoWriter; see for example https://www.mathworks.com/help/matlab/ref/videowriter.writevideo.html#bus2hel-1_sep_bus0tu7
回答 (1 件)
Gaurav Garg
2020 年 12 月 29 日
2 件のコメント
Walter Roberson
2020 年 12 月 29 日
You need more than one frame for avi files. It is a limitation of the movie encoders.
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!