image thumbnail

spring pendulum - Lagrange Mechanics

version (144 KB) by Lucas Tassilo Scharbrodt
solve the equations of motions for a spring pendulum and create animation from it


Updated 11 Jul 2018

View License

This examples shows how to use matlab to numerically solve the equations of motion derived from lagrange's equation for a given initial condition.
An ordinary spring pendulum with a fixed support point has 2x DOF: displacement of the spring and deflection angle of the pendulum

Cite As

Lucas Tassilo Scharbrodt (2021). spring pendulum - Lagrange Mechanics (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!

spring pendulum/