No BSD License  

4.55556
4.6 | 10 ratings Rate this file 36 Downloads (last 30 days) File Size: 1.89 KB File ID: #23037

Lagrange's equations

by

Ivanovich

 

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

| Watch this File

File Information
Description

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 (11)
04 Mar 2014 Mao

Mao

Excellent job!!!

31 May 2013 Ismet Handzic

Ismet Handzic

 
03 Jan 2013 Ismet Handzic

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

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

Alexandre Santana

Excellent!!!!!!!!!!!!!!

13 May 2010 WILLIAM PINTO HERNANDEZ  
12 Dec 2009 Gray Thomas

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

very nice work with symbolic toolbox!

07 Jun 2009 Hrishi Shah

Hrishi Shah

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

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

26 Feb 2009 Ivanovich

Ivanovich

 

Contact us