How to save frames to a video?

조회 수: 29 (최근 30일)
Neda
Neda 2024년 11월 5일 22:26
댓글: Neda 2024년 11월 6일 3:14
Dear Matlab Team,
I have a function that creates frames, using getframe, now I need to save all this frames and convert them to the video. Would you please let me know how can I do this?
Thanks :)

채택된 답변

Image Analyst
Image Analyst 2024년 11월 5일 22:30
Please see my attached demo on how to make a movie from figures/axes/frames.
Probably the simplest demos is movie_made_from_surf.m. The others are fancier versions that do additional operations.
  댓글 수: 3
Neda
Neda 2024년 11월 5일 23:01
Thank you !!! I will try this
Neda
Neda 2024년 11월 6일 3:14
I have applied your code, in each frame it asked me to save as a video or not. I need to run my code for t = 5000, and it save all the frame in one video. How can I do this?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by