File Exchange

image thumbnail


version (71.3 KB) by Matthew Kelly
Tutorial using Lagrange equations to derive equations of motion for mechanical systems.


Updated 21 Feb 2016

From GitHub

View license on GitHub

This tutorial contains clearly written code that uses the Matlab symbolic toolbox to generate equations of motion for a variety of simple mechanical systems, using the Langrange equations. The simple systems are a single pendulum and a simple harmonic oscillator. A few more systems with 2-3 degrees of freedom are included, like a double pendulum, and two versions of the cart-pole system. The most complicated derivation finds equations for a n-link pendulum.

Cite As

Matthew Kelly (2021). MatthewPeterKelly/Lagrange_Mechanics_Derivations (, GitHub. Retrieved .

Comments and Ratings (1)

Haitham Hussien

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

Community Treasure Hunt

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

Start Hunting!