clxrotz.m
来自「Advanced Engineering Mathematics using M」· 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 rotationv1=input(' Vector [x y z]= ')theta=input(' Input rotation angle (degrees)= ')v11=[v1 1]'; % Form homogeneous vectorvrotz=clxrotzf(v11,theta); % Rotatefprintf('Rotated vector\n')vrotz % Display result
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?