condA=cond(A)
relErrorMatlab=condA*eps(1)
if relErrorMatlab>0.1
    disp('There is no reasonable solution to this system')
else
    x=A\b
    if relErrorMatlab > 0.001
        fprintf('Warning: estimated error is %.1E%%\n',...
            relErrorMatlab*100)
    end
end
