create a gif or video using this sequence of figures
61 次查看(过去 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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!