Code covered by the BSD License  

Highlights from
animEuler

5.0

5.0 | 2 ratings Rate this file 9 Downloads (last 30 days) File Size: 3.38 KB File ID: #23964
image thumbnail

animEuler

by Dmitry Savransky

 

29 Apr 2009

Animate sets of Euler rotations using arbitrary Euler angles and rotation order.

| Watch this File

File Information
Description

[coordSys,as] = animEuler(h,rotSet,angs) animates the rotation of a dextral coordinate system using three arbitrary Euler angles (angs) about three axes (rotSet) in figure (h). rotSet is an array of 3 numbers in the range of [1, 3] representing the three body axes, so that rotSet = [3,1,3] is a body 3-1-3 rotation (z-x-z convention). Angles are assumed to be in degrees. In addition to animating the rotations, this function plots the intermediate reference frames.

The function returns the matrix coordSys, representing the direction cosine matrix of the Euler angle set, and the array (as), containing the handles of the three surfact objects representing the axes.

Note: If called with no arguments, this function will animate a 3-1-3 rotation using angles 45,30,60 in figure 1. These defaults will also be used in the place of null values.

Helper function make3daxes and rot3daxes are included.

MATLAB release MATLAB 7.7 (R2008b)
Other requirements This can be quite cpu/gpu intensive - bogs down my G4 powerbook, but works fine on the newer intels that I've tried.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
30 Aug 2010 chandrakala Gowda

Excellent work.

25 Nov 2010 chandrakala Gowda

It gives the best illustration for euler angle rotations.

25 Nov 2010 chandrakala Gowda

Thankyou very very much

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
aerospace Dmitry Savransky 29 Apr 2009 15:12:14
demo Dmitry Savransky 29 Apr 2009 15:12:14
animation Dmitry Savransky 29 Apr 2009 15:12:14
euler angles Dmitry Savransky 29 Apr 2009 15:12:14
direction cosines Dmitry Savransky 29 Apr 2009 15:12:14

Contact us at files@mathworks.com