
function x = ex0_6(v)

load 'A.mat' A -ASCII;
load 'b.mat' b -ASCII;

if (size(A,1) ~= length(b))
  error( 'A and b not compatible'); 
end

if (v == 0)
  x = A\b;
 else
   x = rref([A b]);
end


