📄 basics.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -