% data for Exercise Set 5.2

ex = input('Exercise number (1-6, 25-28)? ');

if ex==1
   v = [1;3;-4], A = [3 -5 -3;6 -2 0;-8 4 1] 
elseif ex==2
   w = [5;-3;2], A = [5 21 19;13 23 2;8 14 1] 
elseif ex==3 | ex==26
   A = [1 3 5 0;0 1 4 -2] 
elseif ex==4
   A = [1 -6 4 0;0 0 2 0] 
elseif ex==5
   A = [1 -2 0 4 0;0 0 1 -9 0;0 0 0 0 1] 
elseif ex==6
   A = [1 5 -4 -3 1;0 1 -2 1 0;0 0 0 0 0] 
elseif ex==25
   A = [2 -6;-1 3;-4 12;3 -9] 
elseif ex==27
   A = [-6 12;-3 6], w = [2;1] 
elseif ex==28
   A = [-8 -2 -9;6 4 8;4 0 4], w = [2;1;-2] 
else   
   disp('No data for this exercise in Section 5.2.')
end
