5 lines
147 B
Matlab
5 lines
147 B
Matlab
|
function Cb2n = roty(theta)
|
|||
|
% 3D初等旋转, theta为旋转角度,rad
|
|||
|
Cb2n = [cos(theta), 0 sin(theta); 0 1 0; -sin(theta) 0 cos(theta)];
|
|||
|
|
|||
|
end
|