a=1 a = 1 size(a) ans = 1 1 a=1; size(a); A=[1,2,3;4,5,6] A = 1 2 3 4 5 6 A(2,3) ans = 6 A(2,5)=1000 A = 1 2 3 0 0 4 5 6 0 1000 A(100,100) ??? Index exceeds matrix dimensions. 1:10 ans = 1 2 3 4 5 6 7 8 9 10 A(1,:) ans = 1 2 3 0 0 A(:,2) ans = 2 5 x=1:10; x(3:end)=7 x = 1 2 7 7 7 7 7 7 7 7 x=linspace(0,4,50); plot(x,exp(-x)) xlabel('The x-axis') ylabel('The y-axis') title('Exponential x-->exp(-x) on [0,4]') print -dps fig1.ps A=[1,2;3,4]; B=[0,1; 1,1]; A+B ans = 1 3 4 5 A-B ans = 1 1 2 3 A*B ans = 2 3 4 7 b=[1;2]; A\b ans = 0 0.5000 c=[1,0]; A*c ??? Error using ==> * Inner matrix dimensions must agree. A*c' ans = 1 3 eye(3) ans = 1 0 0 0 1 0 0 0 1 eye(2,3) ans = 1 0 0 0 1 0 ones([3,1]) ans = 1 1 1 diary off