p3_27.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 20 行
M
20 行
% P3_27.M Test function vrot% Calls function vrot%x1=[1 0]' % [1 0] rotated 30 degreesy1=vrot(x1,30) % [1 0] rotated 30 degreespausex2=[0 1]' y2=vrot(x2,30)pause%% Misc. test%y3=vrot(y2,-30) % Rotate y2 back (=x2?)%% Add a few comments and test this M-file with % format short and format long%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?