📄 rotmatrix.m
字号:
function matrix = rotmatrix(angle)%matrix = rotmatrix(angle)%%Generate rotation matrix for the given angle %%Input:% ANGLE - required rotation angle (anticlockwise direction, in degrees)%%Output:% MATRIX - corresponding rotation matrix%%See also:% DIR2ROT, TRANSFORM%%Radim Halir, Charles University Prague, halir@ms.mff.cuni.cz%Created: 14.1.1998%Last modified 14.1.1998angle = angle / 180 * pi;matrix = [cos(angle), - sin(angle); sin(angle), cos(angle)];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -