How to save frames to a video?

6 vues (au cours des 30 derniers jours)
Neda
Neda le 5 Nov 2024
Commenté : Neda le 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 :)

Réponse acceptée

Image Analyst
Image Analyst le 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 commentaires
Neda
Neda le 5 Nov 2024
Thank you !!! I will try this
Neda
Neda le 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?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by