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

📄 vrot.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
function y2rot=vrot(xto_rot,theta_rot)
% CALL: y2rot=vrot(xto_rot,theta_rot)
%  Rotate the vector xto_rot by the angle theta_rot
%  x must be a 2 x 1 column vector, theta_rot in degrees.
theta_rot=theta_rot*pi/180;       % Convert to radians
Arot=[cos(theta_rot) -sin(theta_rot);sin(theta_rot) cos(theta_rot)];
y2rot=Arot*xto_rot;

⌨️ 快捷键说明

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