How to save frames to a video?

35 views (last 30 days)
Neda
Neda on 5 Nov 2024 at 22:26
Commented: Neda on 6 Nov 2024 at 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 :)

Accepted Answer

Image Analyst
Image Analyst on 5 Nov 2024 at 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 Comments
Neda
Neda on 5 Nov 2024 at 23:01
Thank you !!! I will try this
Neda
Neda on 6 Nov 2024 at 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?

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!