Euler-Lagrange Solver

A function that solves the Euler-Lagrange Equations using the Symbolic Math Toolbox.

You are now following this Submission

A function that solves the Euler-Lagrange Equations using the Symbolic Math Toolbox. It comes with three examples: 1) a generic point-mass model, 2) a 6-DOF quadrotor model and 3) an inverted pendulum-cart model.

Cite As

Morten Veng (2026). Euler-Lagrange Solver (https://www.mathworks.com/matlabcentral/fileexchange/93275-euler-lagrange-solver), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2017b and later releases

Platform Compatibility

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

Improved comments, reduced code size and added another use-case example: the inverted pendulum cart system.

1.0.1

Fixed a bug where the time derivative of the multi-variate expression is wrongly calculated. The updated version uses 'Jacobian' instead of 'diff' to account for cross-dependencies between states.

1.0.0