⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clxrotz.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -