Making a movie and saving figures

52 ビュー (過去 30 日間)
daniel adams
daniel adams 2021 年 11 月 4 日
回答済み: Kshitij Chhabra 2021 年 11 月 12 日
Given an array / matrix K of size and a array / vector v of size M. I want to make a movie with N frames each one being the following plot for i in the range 1:N
plot(K(:,i),v)
I want to save this movie as a .avi file.
Moreover, for a given set of numbers I want to save the figures
plot(K(:,j),v)
for each .
What is the best way to code this up, would anything change with plots?

回答 (1 件)

Kshitij Chhabra
Kshitij Chhabra 2021 年 11 月 12 日
Hi,
You can try exploring the VideoWriter function to convert your plots to a video. You can check to the documentation here.
For additional insights you can check a previously answered question on the community here.
Hope it helps!

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by