File Exchange Pick of the Week

August 13th, 2010

Animating Double Pendulum

Jiro's pick this week is Animated Double Pendulum by Alexander Erlich.

This is a fun pick. Animations have a special place in my engineer's heart. If pictures paint a thousand words, animations paint (1000 x NumberOfFrames) words. With his submission, Alexander illustrates the interesting dynamics of a double pendulum. The cool thing is that you can specify different parameters (gravity, masses, and link lengths) and initial conditions (angles and angular velocities) to see their effects.

As of today, he actually has 2 other entries (Spinning Top, Vibrating String) that use animation to convey concepts.

Comments?


Get the MATLAB code

Published with MATLAB® 7.10

5 Responses to “Animating Double Pendulum”

  1. Sadek Abouda replied on :

    Tt’s a physics phenomenon

  2. Sadek Abouda replied on :

    it’s a physics phenomenon

  3. saber replied on :

    the idea is so very intelligent

  4. dhivya replied on :

    <

  5. jiro replied on :

    A few people have asked how I made the animated GIF. I used the IMWRITE function to export to a GIF. GIF format has options to append frames and specify delay time.

    This page talks about it as well:
    http://www.mathworks.com/support/solutions/en/data/1-48KECO/?solution=1-48KECO

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.