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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!