qrot3d -- Quaternion Rotation
This package performs a quaternion rotation on a 3-D data set.
The code is written in C, which I have found produces a very significant (> 10X) speedup over a .m file version, allowing for rotation of large 3-D data set in a short amount of time.
"qrot3d" operates on single or double precision data and can take as an input either a quaternion or a rotation vector and angle.
usage:
rotdata = qrot3d(data,quaternion)
or
rotdata = qrot3d(data,omega,theta)
data must be a (Nx3) matrix. "qrot3d" works with both single and double precision.
Cite As
Steven Michael (2026). qrot3d -- Quaternion Rotation (https://www.mathworks.com/matlabcentral/fileexchange/7107-qrot3d-quaternion-rotation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Geometric Transformation and Image Registration >
- MATLAB > Graphics > Labels and Styling > Interactions, Camera Views, and Lighting >
- Robotics and Autonomous Systems > Robotics System Toolbox > Coordinate Transformations >
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Coordinate Systems > Quaternion Math >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Update to use new mwSize variable for dimensions (will now run on 2006/2007 versions of MATLAB). Include binaries for windows 32 bit, linux 32& & 64 bit. |
