basics.m
来自「世界经典教材《现代控制系统》第八版MATLAB仿真源码」· M 代码 · 共 70 行
M
70 行
% Appendix F: MATLAB Basics, Section F.2, p. 818-823.%% The MATLAB input/output described in Section F.2, including % Figures F.1 - F.11 are shown here. After each subtopic, a % pause is inserted to allow you to inspect the output. Hit % the space bar (or any other key) to continue to the next % subtopic.%clearformat% -------------- Figure F.2disp(' -------------- Figure F.2')A=[1 2;4 6] pause%% -------------- Figure F.3disp(' -------------- Figure F.3')A=[1 2;4 6];A=[1 2;4 6]pause %% -------------- Figure F.4disp(' -------------- Figure F.4')12.4/6.9pause %% -------------- Figure F.5disp(' -------------- Figure F.5')M=[1 2]m=[3 5 7]pause %% -------------- Figure F.6disp(' -------------- Figure F.6')z=3+4*iInf0/0pause %% -------------- Figure F.7disp(' -------------- Figure F.7')whopause %% -------------- Figure F.8disp(' -------------- Figure F.8')whospause %% -------------- Figure F.9disp(' -------------- Figure F.9')clear Awhopause %% -------------- Figure F.10disp(' -------------- Figure F.10')piformat long; piformat short e; piformat long e; pipause %disp(' -------------- Figure F.11')% -------------- Figure F.11WHOWho
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?