How to save frames to a video?

31 ビュー (過去 30 日間)
Neda
Neda 2024 年 11 月 5 日 22:26
コメント済み: Neda 2024 年 11 月 6 日 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 :)

採用された回答

Image Analyst
Image Analyst 2024 年 11 月 5 日 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 件のコメント
Neda
Neda 2024 年 11 月 5 日 23:01
Thank you !!! I will try this
Neda
Neda 2024 年 11 月 6 日 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?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by