Euler angle, DCM, Quaternion, and Euler Vector Conversion/Teaching GUI
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:
Uses an enhanced uicontrol GUI function for support of LaTeX formatting:
Function uibutton, Author: Douglas Schwarz
This is my first venture at a GUI so if there are bugs, please let me know.
Cite As
John Fuller (2024). Euler angle, DCM, Quaternion, and Euler Vector Conversion/Teaching GUI (https://www.mathworks.com/matlabcentral/fileexchange/27653-euler-angle-dcm-quaternion-and-euler-vector-conversion-teaching-gui), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Physical and Time Unit Conversions >
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Coordinate Systems > Quaternion Math >
Tags
Acknowledgements
Inspired by: uibutton: GUI pushbuttons with better labels, Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.