Version (4.09 MB) by KSSV
Simulation of Nonlinear Spring Pendulum


Updated 4 Nov 2011

View License

A nonlinear Spring Pendulum is simulated. Phase plane plots for the spring motion and pendulum motion are updated accordingly. Pendulum equation is nonlinear, it is solved using ode45 of MATLAB. Mass, length, and duration of pendulum and initial values can be changed depending on the requirement.

Cite As

KSSV (2023). SpringPendulum (https://www.mathworks.com/matlabcentral/fileexchange/33168-springpendulum), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Arrowhead, Spring() To plot and animate a 2D-Spring

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added stop button to close the animation, and the animation is modified to have exact spring like behavior.

Preview image added