SpringPendulum

Simulation of Nonlinear Spring Pendulum

You are now following this Submission

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 (2026). SpringPendulum (https://uk.mathworks.com/matlabcentral/fileexchange/33168-springpendulum), MATLAB Central File Exchange. Retrieved .

Acknowledgements

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

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

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

1.2.0.0

Preview image added

1.0.0.0