No BSD License  

4.55556

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

Lagrange's equations

by

 

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

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

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

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

very nice work with symbolic toolbox!

07 Jun 2009 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

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

26 Feb 2009 Ivanovich  

Contact us