Generate video from Matlab figure

The .m file generate a video from animating a figure

23 Downloads

Updated 15 Dec 2021

From GitHub

View License on GitHub

What is this?
It is a script that animates a figure on Matlab, moreover you can save the animated figure as a video with arbitrary length time.
What do you need?
Any figure or set of figures using plot or plot3
Any number of subplots for each figure
Any number of pair data (x, y, z) or (x, y)
Any length of pair data
What will you obtain?
An animation of the data without changing any figure property
A video will be obtained if the option “generate video” is enabled
How to use it?
Step 1: Plot the desired figures (one animation per figure)
Step 2: Set the animation total time (in seconds)
Step 3: Verify if you want to save the animation as video (true or false)
Step 4: Run the script and let it to finish (write the name of the video when asked).
Step 5: Enjoy your animations

Cite As

David Bedolla Martinez (2023). Generate video from Matlab figure (https://github.com/BedollaDavid/videoFromMatlabFigure/releases/tag/v1.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.