rotz.m

来自「对于工程应用上的机械臂」· M 代码 · 共 12 行

M
12
字号
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL

function [Rmat]=RotZ(angle)
%%output: rotation matrix along Z axis by an angle expressed in degree
Rmat=[ cosd(angle) -sind(angle) 0 0 
       sind(angle) cosd(angle) 0 0;
       0  0  1 0;
       0 0 0  1];

end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?