create a gif or video using this sequence of figures
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 27 Dez. 2020
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
Antworten (1)
Gaurav Garg
am 29 Dez. 2020
2 Kommentare
Walter Roberson
am 29 Dez. 2020
You need more than one frame for avi files. It is a limitation of the movie encoders.
Siehe auch
Kategorien
Mehr zu Animation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!