Code covered by the BSD License  

Highlights from
Animated Double Pendulum

5.0
5.0 | 7 ratings Rate this file 83 Downloads (last 30 days) File Size: 114 KB File ID: #27212 Version: 1.1
image thumbnail

Animated Double Pendulum

by

 

09 Apr 2010 (Updated )

Show animation of the double pendulum's (mostly) chaotic behavior.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

For animation, the program uses Matlab's normal plot command combined with the drawnow command. It is based on the ode45 solution of the corresponding differential equations.

Comprehensive documentation is provided, including a sketch of the most important steps of how to derive the equations of motion. A simple Mathematica notebook contains all of the manipulations.

 
Start the program via >> double_pendulum_init
 

You can adapt parameters such as rod lengths, masses and initial angular positions and velocities in the double_pendulum_init.m file.

It might be interesting to implement some features in future versions, such as angular time dependence plots, phase space portraits or Poincaré sections.

Have fun observing the rich dynamic behaviour of this simple, but mostly chaotic system :-)

Acknowledgements

This file inspired Simple Pendulum.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
07 Jun 2015 Miguel Angel Jiménez Herrera  
26 Apr 2015 nitish kumar vaja

amazing, this program could be a base reference for further works.

24 Apr 2015 Jacek

Jacek (view profile)

Results are very inconsistent with other projects and online simulators, but they seem to use iterative calculations and not ivp deq's. Also equations in m-file are inconsistent with pdf documentation. Can you please elaborate on that?

Comment only
11 Mar 2014 Mauricio

wonderful!

11 Mar 2014 Mauricio  
30 Nov 2012 Dominika  
30 Nov 2012 Dominika  
07 Jul 2010 Michu Gura

10!

Updates
04 Oct 2010 1.1

Movies can now be written into .avi format. Frame rate is now changeable and can be adapted both for real time animation and movie rendering.

Contact us