File Exchange

image thumbnail

MATLAB Plot Gallery - Animation

version (1.11 MB) by

Create an animated GIF



View License

This is an example of how to create animations and animated GIFs in MATLAB®. In this example, we will animate the motion of a double-pendulum. We solve the ordinary differential equation using "ode45".
Read about the "getframe" and "imwrite" functions in the MATLAB documentation.
For more examples, go to MATLAB Plot Gallery -

Comments and Ratings (2)

Seyhan Özen

Neha Jain

I liked the animation in the form of a gif. I intend to use this in my web site :). Thank you


Updated license


Updated screenshot.

MATLAB Release
MATLAB 8.4 (R2014b)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video