How to save frames to a video?

6 Ansichten (letzte 30 Tage)
Neda
Neda am 5 Nov. 2024
Kommentiert: Neda am 6 Nov. 2024
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 :)

Akzeptierte Antwort

Image Analyst
Image Analyst am 5 Nov. 2024
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 Kommentare
Neda
Neda am 5 Nov. 2024
Thank you !!! I will try this
Neda
Neda am 6 Nov. 2024
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?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type 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!

Translated by