Rotation Matrix

版本 1.0.0.1 (2.4 KB) 作者: Jan
Rotation matrix in 2D, 3D and N-D
683.0 次下载
更新时间 2022/9/30

查看许可证

RotMatrix - N-dimensional Rotation matrix
R = RotMatrix(alpha, u, v)
INPUT:
alpha: Angle of rotation in radians, counter-clockwise direction.
u, v: If just the input alpha is provided, a 2D matrix is replied.
For 1 input u, the 3D rotation matrix is created. u must have 3
elements.
If u and v are used as inputs, the N-dimensional rotation is
performed in the hyperplane spanned by u and v. Note, that there is
no unique axis of rotation in N>3 dimensions.
u and v are normalized automatically and in the N-D case v is made
orthogonal to u.
The dimension of u and v determine the dimension of the output.
OUTPUT:
R: Rotation matrix.
REFERENCES:
https://analyticphysics.com/Higher%20Dimensions/Rotations%20in%20Higher%20Dimensions.htm
https://en.wikipedia.org/wiki/Rotation_matrix
https://application.wiley-vch.de/books/sample/3527406204_c01.pdf

引用格式

Jan (2024). Rotation Matrix (https://www.mathworks.com/matlabcentral/fileexchange/66446-rotation-matrix), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 3-D Scene Control 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Help section improved.

1.0.0.0