Simple Quaternion and 3D Rotation function library

Version 1.0.1 (17.1 KB) by fhz
Library of functions for the quaternion algebra and the rotation matrices.
213 Downloads
Updated 15 Jun 2019

View License

This simple library implements the quaternion algebra in Matlab using the isomorphism between quaternions and R^4.
It also implements the rotation matrices for many combinations of Euler angles and the Rodrigues' Formula and the quaternion version.
This library also contains a 3D Visualization tool.

Summarized description functions:
The sum and subtraction is normally performed by Matlab as R^4 vectors.
conjugate
division on the left
division on the right
exponential
inverse
absolute value
plot of coordinates in 3D
product
product with dot and cross commands
matrix isomorphism 1
matrix isomorphism 2
rotation
to string
Rx
Ry
Rz
Rxyz -- and others combinations of Euler Angles.
Time derivative of Rxyz
Rot Rodrigues

Cite As

fhz (2024). Simple Quaternion and 3D Rotation function library (https://www.mathworks.com/matlabcentral/fileexchange/71861-simple-quaternion-and-3d-rotation-function-library), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

Description update.

1.0.0