% data for Exercise Set 4.2

ex = input('Exercise number (5-14, 21-27, 35, 36)? ');

if ex==5
   A = [1 5 -6;-1 -4 4;-2 -7 9] 
elseif ex==6
   A = [1 5 -3;3 -3 3;2 13 -7] 
elseif ex==7
   A = [1 3 0 2;-2 -5 7 4;3 5 2 1;1 -1 2 -3] 
elseif ex==8
   A = [1 3 3 -4;0 1 2 -5;2 5 4 -3;-3 -7 -5 2] 
elseif ex==9
   A = [1 -1 -3 0;0 1 5 4;-1 2 8 5;3 -1 -2 3] 
elseif ex==10
   A = [1 3 -1 0 -2;0 2 -4 -1 -6;-2 -6 2 3 9;3 7 -3 8 -7;3 5 5 2 7] 
elseif ex==11
   A = [2 5 -3 -1;3 0 1 -3;-6 0 -4 9;4 10 -4 -1] 
elseif ex==12
   A = [-1 2 3 0;3 4 3 0;5 4 6 6;4 2 4 3] 
elseif ex==13
   A = [2 5 4 1;4 7 6 2;6 -2 -4 0;-6 7 7 0] 
elseif ex==14
   A = [-3 -2 1 -4;1 3 0 -3;-3 4 -2 8;3 -4 0 4] 
elseif ex==21
   A = [2 3 0;1 3 4;1 2 1] 
elseif ex==22
   A = [5 0 -1;1 -3 -2;0 5 3] 
elseif ex==23
   A = [2 0 0 8;1 -7 -5 0;3 8 6 0;0 7 5 4] 
elseif ex==24
   v1 = [4;6;-7], v2 = [-7;0;2], v3 = [-3;-5;6] 
elseif ex==25
   v1 = [7;-4;-6], v2 = [-8;5;7], v3 = [7;0;-5] 
elseif ex==26
   v1 = [3;5;-6;4], v2 = [2;-6;0;7], v3 = [-2;-1;3;0], v4 = [0;0;0;-3] 
elseif ex==27
   B = [1 0 1;1 1 2;1 2 1] 
elseif ex==35
   A = [3 0;6 1], B = [2 0;5 4] 
elseif ex==36
   A = [3 6;-1 -2], B = [4 2;-1 -1] 
else
   disp('No data for this exercise in Section 4.2.')
end
