image thumbnail


version (5.71 KB) by Przemyslaw Baranski
An easy-to-use set of functions for quaternion calculus. Examples and demo


Updated 05 Mar 2012

View License

Easy implementation of quaternions with examples and demo
1) multiplication
2) inverse
3) rotating a point around given axis
4) conversion from quaternions to rotation matrix
5) conversion from rotation matrix to quaternion

Cite As

Przemyslaw Baranski (2021). Quaternions (, MATLAB Central File Exchange. Retrieved .

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

Inspired: STL Lattice Generator

Community Treasure Hunt

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

Start Hunting!