72 views (last 30 days)

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 ?

Gaurav Garg
on 29 Dec 2020

Walter Roberson
on 29 Dec 2020

You need more than one frame for avi files. It is a limitation of the movie encoders.

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

Start Hunting!
## 7 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1228887

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1228887

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1228942

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1228942

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229042

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229042

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229447

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229447

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229477

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229477

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229557

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229557

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229567

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/702962-create-a-gif-or-video-using-this-sequence-of-figures#comment_1229567

Sign in to comment.