A nonlinear Simple Pendulum is simulated. Phase plane plot and time vs. displacement plots are updated accordingly. Pendulum equation is nonlinear, it is solved using ode45 of MATLAB. Mass, length, damping, and duration of pendulum can be changed.
Cite As
KSSV (2024). SimplePendulum (https://www.mathworks.com/matlabcentral/fileexchange/33082-simplependulum), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Numerical Integration and Differential Equations >
- Physical Modeling > Simscape Multibody > Multibody Modeling > Assembly >
- Sciences > Physics > General Physics > Classical Mechanics >
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Arrowhead, Animated Double Pendulum
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.