I am trying to call "getframe" to save an animation from a figure and then using "VideoWriter" to turn it into a video file, but "getframe" is too slow as I am running at 25 frames per second. Is there any way to get around this?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2018 年 6 月 22 日

0 投票

Slowing down the animation to 10 frames per second should allow you to use "getframe" and have it include all the frames. Then, when using "VideoWriter" to create the video, you can specify the 'FrameRate' property.
For more information, please see the following links:

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAnimation についてさらに検索

製品

リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by