How to make video file from a set of plots in Matlab
1 view (last 30 days)
Show older comments
In a for loop, a number of 3200 figures are created. How can I save those plots as a video file in Matlab 2016b? In fact, there are some posts and questions in the net also in MathWorks, but those could not help me.
0 Comments
Accepted Answer
Walter Roberson
on 6 Aug 2017
There are a couple of different ways depending on your graphics.
One way is to use getframe() to take a snapshot of the display; that frame can then be written to a video file.
Another way is to imwrite() of print() or saveas() to a file, and then later to run through reading all of the files and adding the images to a video file.
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data 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!