% data for Exercise Set 3.1

ex = input('Exercise number (1-12, 17-19, 26-30)? ');

if ex==1
   A = [7 0 -1;-1 5 2] 
elseif ex==2
   A = [7 0 -1;-1 5 2], B = [-1 4 1;5 -3 0] 
elseif ex==3
   B = [-1 4 1;5 -3 0], A = [7 0 -1;-1 5 2] 
elseif ex==4
   C = [1 4;-4 0],  E = [7;-3] 
elseif ex==5
   A = [7 0 -1;-1 5 2], C=[1 4;-4 0] 
elseif ex==6
   C = [1 4;-4 0], B = [-1 4 1;5 -3 0] 
elseif ex==7
   C = [1 4;-4 0], D = [1 0;-2 1] 
elseif ex==8
   E = [7;-3], B = [-1 4 1;5 -3 0] 
elseif ex==9
  A = [4 -1;3 -2] 
elseif ex==10
   A = [4 -5 3;5 7 -2;-3 2 -1] 
elseif ex==11
   A = [1 3;0 4;-2 1], B = [2 3;1 -1] 
elseif ex==12
   A = [3 4;5 0;1 2], B = [3 -1;-1 2] 
elseif ex==17
   A = [1 2;3 6], B = [3 -8;2 3], C = [5 2;1 -2] 
elseif ex==18
   A = [2 -6;-1 3] 
elseif ex==19
   A = [1 1 1;1 2 3;1 4 5], D = [2 0 0;0 3 0;0 0 4] 
elseif ex==26
   A = [1 -2;-2 5], AB = [-1 2 -1;6 -9 3]
elseif ex==27
   A = [1 2;-3 4], B = [-8 4;-7 5]
   disp('Use a single quote after  A  to produce the transpose of  A.')
elseif ex==28
   A = [1 2;-3 4], u = [5;-2]
   disp('Use a single quote after  A  to produce the transpose of  A.')
elseif ex==29
   A = [1 2;-3 4], B = [-8 4;-7 5] 
elseif ex==30
   A = [1 2;-3 4] 
else
   disp('No data for this exercise in Section 3.1.') 
end
