% Appendix A: MATLAB Basics, Section A.2
%
%    The MATLAB input/output described in Section A.2, including 
%    Figures A.1 - A.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.
%
clear
format
% -------------- Figure A.2
disp(' -------------- Figure A.2')
A=[1 2;4 6] 
pause
%
% -------------- Figure A.3
disp(' -------------- Figure A.3')
A=[1 2;4 6];
A=[1 2;4 6]
pause 
%
% -------------- Figure A.4
disp(' -------------- Figure A.4')
12.4/6.9
pause 
%
% -------------- Figure A.5
disp(' -------------- Figure A.5')
M=[1 2]
m=[3 5 7]
pause 
%
% -------------- Figure A.6
disp(' -------------- Figure A.6')
z=3+4*i
Inf
0/0
pause 
%
% -------------- Figure A.7
disp(' -------------- Figure A.7')
who
pause 
%
% -------------- Figure A.8
disp(' -------------- Figure A.8')
whos
pause 
%
% -------------- Figure A.9
disp(' -------------- Figure A.9')
clear A
who
pause 
%
% -------------- Figure A.10
disp(' -------------- Figure A.10')
pi
format long; pi
format short e; pi
format long e; pi
pause 
%
disp(' -------------- Figure A.11')
% -------------- Figure A.11
WHO
Who