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.
division on the left
division on the right
plot of coordinates in 3D
product with dot and cross commands
matrix isomorphism 1
matrix isomorphism 2
Rxyz -- and others combinations of Euler Angles.
Time derivative of Rxyz
fhz (2020). 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 .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!