% data for Exercise Set 5.4

ex = input('Exercise number (1-12, 15-18)? ');

if ex==1
   b1 = [3;-5], b2 = [-4;6], xB = [5;3] 
elseif ex==2
   b1 = [4;5], b2 = [6;7], xB = [8;-5] 
elseif ex==3
   b1 = [1;-4;3], b2 = [5;2;-2], b3 = [4;-7;0], xB = [3;0;-1] 
elseif ex==4
   b1 = [-1;2;0], b2 = [3;-5;2], b3 = [4;-7;3], xB = [-4;8;-7] 
elseif ex==5
   b1 = [1;-3], b2 = [2;-5], x = [-2;1] 
elseif ex==6
   b1 = [1;-2], b2 = [5;-6], x = [4;0] 
elseif ex==7
   b1 = [1;-1;-3], b2 = [-3;4;9], b3 = [2;-2;4], x = [8;-9;6] 
elseif ex==8
   b1 = [1;0;3], b2 = [2;1;8], b3 = [1;-1;2], x = [3;-5;4] 
elseif ex==9
   b1 = [2;-9], b2 = [1;8] 
elseif ex==10
   b1 = [3;-1;4], b2 = [2;0;-5], b3 = [8;-2;7] 
elseif ex==11
   b1 = [3;-5], b2 = [-4;6], x = [2;-6] 
elseif ex==12
   b1 = [4;5], b2 = [6;7], x = [2;0] 
elseif ex==15
   b1 = [2.6;-1.5;0], b2 = [0;3;0], b3 = [0;0;4.8]
   v = [1/2;1/4;1/6]
   disp('The third entry of v was entered as 1/6.  Check this by computing 6*v.')
elseif ex==16
   b1 = [2.6;-1.5;0], b2 = [0;3;0], b3 = [0;0;4.8]
   v = [1/2;1/2;1/3]
   disp('The third entry of v was entered as 1/3.  Check this by computing 3*v.')
elseif ex==17
   v1 = [1;-3], v2 = [2;-8], v3 = [-3;8], v4 = [1;1] 
elseif ex==18
   v1 = [1;3], v2 = [3;8], v3 = [2;5], v4 = [1;1] 
else
   disp('No data for this exercise in Section 5.4.')
end
