File Exchange

image thumbnail

Rotation matrix

version 1.0 (944 Bytes) by Mathan Chandran
For a given axis vector and an angle of rotation about the axis we get a rotation matrix.

1 Download

Updated 29 Apr 2016

View License

example m = rotm(v,angle)
v := a row vector of the axis of rotation.
angle := angle of rotation about the axis.
It uses six subroutines orthv.m,gramsch.m,
proj.m,projv.m,ord.m, shuffle.

Cite As

Mathan Chandran (2020). Rotation matrix (https://www.mathworks.com/matlabcentral/fileexchange/56828-rotation-matrix), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jan

There is no useful documentation. It replies a 4x4 matrix for a 4D input, but a hyper-plane to rotate in is not determined uniquely by one vector. Without further explanations it is hard to understand, what is calculated exactly. Please add meaningful comments and a help section.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: Rotation Forest

Community Treasure Hunt

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

Start Hunting!