clxrotz.m
来自「Programs for the book Advanced Engineeri」· M 代码 · 共 11 行
M
11 行
% CLXROTZ.M Rotate a vector around the z axis
% Input the vector [x y z] and the angle in degrees.
% Function clxrotzf is called to perform rotation
v1=input(' Vector [x y z]= ')
theta=input(' Input rotation angle (degrees)= ')
v11=[v1 1]'; % Form homogeneous vector
vrotz=clxrotzf(v11,theta); % Rotate
fprintf('Rotated vector\n')
vrotz % Display result
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?