Uses all images in a folder to create the GIF. Really simple code for a really simple task, but I've found it useful to have in your tools.
animatedGIF(fold, fname, delay): creates an animated gif named fname out of the images in folder fold (currently only JPEG images, can easily be extended)
optional argument delay sets the delay between frames (default 0.5)
Cite As
Adina Stoica (2024). Animated GIF (https://www.mathworks.com/matlabcentral/fileexchange/46048-animated-gif), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Robotics and Autonomous Systems > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
- Aerospace and Defense > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
- Automotive > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
Tags
Acknowledgements
Inspired: gif, Average Temperature
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.