vrot.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 8 行
M
8 行
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 radiansArot=[cos(theta_rot) -sin(theta_rot);sin(theta_rot) cos(theta_rot)];y2rot=Arot*xto_rot;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?