No BSD License  

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

Lagrange's equations

by

Ivanovich (view profile)

 

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 (12)
27 May 2015 Alex R

Alex R (view profile)

Good job! Thank you!

04 Mar 2014 Mao

Mao (view profile)

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

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

13 May 2010 WILLIAM PINTO HERNANDEZ  
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