%% Check Condition of Coefficient Matrix
% Create a matrix decomposition object for a 25-by-25 Hilbert coefficient matrix and then check to see whether the underlying coefficient matrix is ill conditioned.
%

A = hilb(25);
dA = decomposition(A)

%

tf = isIllConditioned(dA)

%
% Check the reciprocal condition number of the coefficient matrix. In this case isIllConditioned determines that the coefficient matrix A is ill conditioned because rcond(dA) is smaller than eps.

rcond(dA)

% Copyright 2012 The MathWorks, Inc.