No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Lagrange's equations

4.6 | 11 ratings Rate this file 35 Downloads (last 30 days) File Size: 1.89 KB File ID: #23037 Version: 1.0

Lagrange's equations


Ivanovich (view profile)


Lagrange is a function that calculate equations of motion (Lagrange's equations)

| Watch this File

File Information

Lagrange is a function that calculate equations of motion (Lagrange's equations)
 d/dt(dL/d(dq))- dL/dq=0.
 It Uses the Lagrangian that is a function that summarizes the
dynamics of the system. Symbolic Math Toolbox is required.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
27 May 2015 Alex R

Alex R (view profile)

Good job! Thank you!

04 Mar 2014 Huina Mao

Excellent job!!!

31 May 2013 Ismet Handzic

03 Jan 2013 Ismet Handzic

Why did you use the simple() and collect() commands in this function? Is it functional? Because it seems to work just as well and much faster without those.

18 Apr 2012 Robin

Robin (view profile)

a g is missing at this row in the code:
16 % syms x dx ddx t m g

Comment only
15 May 2010 Alexandre Santana



12 Dec 2009 Gray Thomas

This code worked exactly the way I expected it to. It is totally deserving of the original rating, in my opinion.

06 Aug 2009 Daniel

Daniel (view profile)

very nice work with symbolic toolbox!

07 Jun 2009 Hrishi Shah

Hrishi Shah (view profile)

Nice code. easy to understand. would be great if you could extend it to include the torque and moment terms too.

26 Feb 2009 John D'Errico

John D'Errico (view profile)

Don't rate your own code. Obviously you think your own stuff is good.

26 Feb 2009 Ivanovich

Ivanovich (view profile)

Contact us