Code covered by the BSD License  

Highlights from
3D Rotations

4.66667

4.7 | 12 ratings Rate this file 43 Downloads (last 30 days) File Size: 7.16 KB File ID: #956

3D Rotations

by Giampiero Campa

 

18 Oct 2001 (Updated 12 May 2005)

3D Space Coordinate Transformations

| Watch this File

File Information
Description

3D Space Coordinate Transformations

This folder contains 3 files (m-functions) :

- t2x.m Transformation Matrix to Generalized Position Vector.
- x2t.m Generalized Position Vector to Transformation Matrix.
- m2m.m Mass/Inertia Tensor transformation with coordinate change.

In the Generalized Position Vector the orientation can be expressed with:
  - unit quaternion,
  - Euler angles xyz (roll, pitch, and yaw),
  - Euler angles zyz (rotation, precession, and mutation),
  - unit vector and rotation angle,
  - Denavitt-Hartemberg parameters.
Conversion between the above orientation systems can be easily achieved.

The three files work independently on each other, but since they work
on the same objects it is somewhat useful to keep them in the same folder.

For more detailed information see the help texts of the three functions.

Giampy
January 2001

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
05 Oct 2002 yang guoan  
16 Mar 2003 Lina Chang

Useful

24 Jul 2003 Hank Jones

I changed the function names to make them more descriptive, but the coding was well-done and the documentation is clear. Thanks, Giampy!

01 Mar 2004 Thang Do tran  
23 Jun 2004 Chaim Cohen

Well done and easy to use.

03 Dec 2004 xhienna ver

hey can you do vector / coordinate transformation too? mmm input ax ay az then show 3d of its cartesian plot and cylindrical and spherical.. really need to know how to do it. its a homework for my class. thanks.:)

29 Mar 2005 hugo ferreira

NICE
www.dee.isep.ipp.pt/~e980933

08 Jan 2006 Lakshmi Ranganathan

the version is excellent can be made more user friendly

26 Jan 2006 Gianluigi Baldesi  
09 Apr 2006 Mugabo Gustave  
06 Nov 2006 jate sri  
06 Feb 2007 Laurent SIMON

Errr... whatever the T matrix I enter, in roll-pitch-yaw mode, the roll is ALWAYS equal to pi/2... ?

02 Oct 2007 gdfg sdgsd  
Please login to add a comment or rating.
Updates
25 Apr 2003

Changed the file exchange category

12 May 2005

Renamed everything lowercase

12 May 2005

Removed dir structure from zip file

Tag Activity for this File
Tag Applied By Date/Time
mechanical modeling Giampiero Campa 22 Oct 2008 06:38:40
coordinates Giampiero Campa 22 Oct 2008 06:38:40
robotics Giampiero Campa 22 Oct 2008 06:38:41
rotation matrices Giampiero Campa 22 Oct 2008 06:38:41
coordinates Greg Salomons 09 Jun 2011 09:33:46

Contact us at files@mathworks.com