How to save frames to a video?

32 visualizaciones (últimos 30 días)
Neda
Neda el 5 de Nov. de 2024 a las 22:26
Comentada: Neda el 6 de Nov. de 2024 a las 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 :)

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Nov. de 2024 a las 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 comentarios
Neda
Neda el 5 de Nov. de 2024 a las 23:01
Thank you !!! I will try this
Neda
Neda el 6 de Nov. de 2024 a las 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?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by