save a movement as a video

4 ビュー (過去 30 日間)
sarah nik
sarah nik 2013 年 9 月 2 日
コメント済み: Walter Roberson 2024 年 11 月 25 日
Does anyone know how to capture a video during the matlab running process. I mean, the file can be save as a video at the end.

回答 (1 件)

Harsh
Harsh 2024 年 11 月 24 日
Hi sarah,
You can use the “getframe” function to capture the current axes or a figure. Then use “writeVideo” function to write those frames to a video. Please note that a VideoWriter” object needs to be created to which a video can be written using the “writeVideo” function. Please refer to the following documentation links to understand more about the above-mentioned functions:
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 11 月 25 日
Note: VideoWriter() did not exist at the time the question was originally asked.

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

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by