How to save frames to a video?

32 visualizzazioni (ultimi 30 giorni)
Neda
Neda il 5 Nov 2024 alle 22:26
Commentato: Neda il 6 Nov 2024 alle 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 :)

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by