RotMatrix - N-dimensional Rotation matrix
R = RotMatrix(alpha, u, v)
alpha: Angle of rotation in radians, counter-clockwise direction.
u, v: Ignored for the 2D case.
For the 3D case, u is the vector to rotate around.
For the N-D case, there is no unique axis of rotation anymore, so 2
orthonormal vectors u and v are used to define the (N-1) dimensional
hyperplane to rotate in.
u and v are normalized automatically and in the N-D case it is cared
for u and v being orthogonal.
R: Rotation matrix.
Jan (2022). Rotation Matrix (https://www.mathworks.com/matlabcentral/fileexchange/66446-rotation-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!