Simple Pendulum Simulation
Version 1.1.0.0 (3.47 KB) by
James Adams
Simulates the motion of a simple pendulum.
Matlab program to simulate the motion of a simple pendulum. Uses a numerical ODE solver. Solutions are converted to Cartesian coordinates and are plotted at each time interval.
In addition, the user of given the option of selecting either a phase portrait or time series plot.
Feel free to change initial conditions and parameters (i.e. pendulum length).
Enjoy :)
Cite As
James Adams (2024). Simple Pendulum Simulation (https://www.mathworks.com/matlabcentral/fileexchange/46101-simple-pendulum-simulation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
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
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.