Making a movie and saving figures
27 views (last 30 days)
Show older comments
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/789808/image.png)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/789812/image.png)
plot(K(:,j),v)
for each
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/789816/image.png)
What is the best way to code this up, would anything change with
plots?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/789820/image.png)
0 Comments
Answers (1)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!