Animated Double Pendulum
Nota del editor: This file was selected as MATLAB Central Pick of the Week
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 :-)
Citar como
Alexander Erlich (2024). Animated Double Pendulum (https://www.mathworks.com/matlabcentral/fileexchange/27212-animated-double-pendulum), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Numerical Integration and Differential Equations >
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
- Sciences > Physics > Nonlinear Dynamics >
- Physical Modeling > Simscape Multibody > Multibody Modeling > Assembly >
- Sciences > Physics > General Physics > Classical Mechanics >
Etiquetas
Agradecimientos
Inspiración para: SimplePendulum
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.