rotmatrix.m

来自「一个很好用的摄像机标定程序」· M 代码 · 共 21 行

M
21
字号
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 + =
减小字号Ctrl + -
显示快捷键?