% data for Exercise Set 5.6

ex = input('Exercise number (1-4)? ');

if ex==1
   A = [1 -4 9 -7;-1 2 -4 1;5 -6 10 7]
   B = [1 0 -1 5;0 -2 5 6;0 0 0 0]
elseif ex==2
   A = [1 -3 4 -1 9;-2 6 -6 -1 -10;-3 9 -6 -6 -3;3 -9 4 9 0]
   B = [1 -3 0 5 -7;0 0 2 -3 8;0 0 0 0 5;0 0 0 0 0]
elseif ex==3
   A = [2 -3 6 2 5;-2 3 -3 -3 -4;4 -6 9 5 9;-2 3 3 -4 1]
   B = [2 -3 6 2 5;0 0 3 -1 1;0 0 0 1 3;0 0 0 0 0]
elseif ex==4
   A = [1 1 -3 7 9 -9;1 2 -4 10 13 -12;1 -1 -1 1 1 -3;1 -3 1 -5 -7 3;1 -2 0 0 -5 -4]
   B = [1 1 -3 7 9 -9;0 1 -1 3 4 -3;0 0 0 1 -1 -2;0 0 0 0 0 0;0 0 0 0 0 0]
else
   disp('No data for this exercise in Section 5.6.')
end
