% data for Exercise Set 3.6

ex = input('Exercise number (1-8, 11-16)? ');
 
if ex==1 | ex==5
   A = [4 1;-1 5], b = [7;-7]
   disp('The Study Guide explains how use MATLAB for this exercise.')
elseif ex==2 | ex==6
   A = [10 -1;1 8], b = [25;43] 
   disp('The Study Guide explains how to use MATLAB for this exercise.')
elseif ex==3 | ex==7
   A = [3 1 0;-1 -5 2;0 3 7], b = [11;15;17] 
elseif ex==4 | ex==8
   A = [50 -1 0;1 -100 2;0 2 50], b = [149;-101;-98] 
elseif ex==11
   A = [2 6;5 -1], b = [4;6] 
   disp('The command  A = swap(A,r,s)  will interchange rows r and s of A.')
   disp('Don''t forget to interchange the entries in the vector b, too.')
elseif ex==12
   A = [-1 4 -1;4 -1 0;0 -1 4], b = [3;10;6] 
   disp('The command  A = swap(A,r,s)  will interchange rows r and s of A.')
   disp('Don''t forget to rearrange the entries in the vector b, too.')
elseif ex==13
   A = [4 -2;-5 4], b = [10;-2] 
elseif ex==14
   A = [5 -3 2;-1 5 3;1 -4 -4], b  = [-19;10;18] 
elseif ex==15
   A = [1 0 1;1 -1 0;1 2 -3], b = [6;3;9] 
elseif ex==16
   A = [3 -2 2;-2 3 -2; 2 -2 3], b = [10;-7;4] 
else
   disp('No data for this exercise in Section 3.6.')
end
