Code covered by the BSD License  

Highlights from
Euler angle, DCM, Quaternion, and Euler Vector Conversion/Teaching GUI

3.66667

3.7 | 3 ratings Rate this file 98 Downloads (last 30 days) File Size: 50.5 KB File ID: #27653
image thumbnail

Euler angle, DCM, Quaternion, and Euler Vector Conversion/Teaching GUI

by

 

18 May 2010 (Updated )

A GUI that helps users learn how Euler angles and other rotational data relate to one another.

| Watch this File

File Information
Description

This is an instructional GUI to be used for learning how Euler angles, DCMs, quaternions, and Euler vector parameters relate in the rotation of cartesian frames (A to B). Can also be used to convert between all 4 values, however see below for a function that accomplishes this.

Features:
- All 12 sequences of Euler angle rotation types.
- Color coded axes and angle labeling for reference.
- Normalization of input Q or Euler vector components.
- Plotting options for viewing Euler angles or Euler vector separately.
- Error dialog box to prohibit faulty input or notify user of possible singularities.

For the function-based rotation conversion, please see SpinCalc:

http://www.mathworks.com/matlabcentral/fileexchange/20696-function-to-convert-between-dcm-euler-angles-quaternions-and-euler-vectors

Uses an enhanced uicontrol GUI function for support of LaTeX formatting:
Function uibutton, Author: Douglas Schwarz

Source:
http://www.mathworks.com/matlabcentral/fileexchange/10743-uibutton-gui-pushbuttons-with-better-labels

This is my first venture at a GUI so if there are bugs, please let me know.

Acknowledgements

Uibutton: Gui Pushbuttons With Better Labels and Function To Convert Between Dcm, Euler Angles, Quaternions, And Euler Vectors inspired this file.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
06 Feb 2014 Jan Buytaert

You programmed
6 Tait–Bryan angles (x-y-z, y-z-x, z-x-y, x-z-y, z-y-x, y-x-z)
and
6 Euler angles (z-x-z, x-y-x, y-z-y, z-y-z, x-z-x, y-x-y)

In your program, the Euler angles cannot handle negative values though! ...

26 Oct 2012 Ryan G

MathWorks also has their own examples of implementing <a href="www.mathworks.com/discovery/euler-angles.html"> euler angles </a>.

08 Sep 2011 Michael Völker  
Updates
18 May 2010

Added screenshot

12 Sep 2012

Updated to include an App file for R2012b

Contact us