.. highlightlang:: us .. index:: cond .. _cond: cond ==== .. us.tag cond NOTREADYENGLISH math-lin-alg :ref:`cond` calculates the condition number of a matrix. .. function:: rsCond = cond(m) .. us.return **Return Value** *rsCond* is the condition number. .. us.params **Parameters** .. uparam:: m *m* is a real or complex matrix. .. us.example **Example** :: * norm(hilb(10)) * norm(hilb(10)^-1) 3.535e+013 * cond(hilb(10)) 3.535e+013 * rcond = 1/cond(hilb(10)) * printf("%e\n%e\n", rcond, _eps); 2.828556e-14 2.220446e-16 .. us.comment **Comment** The condition number of a matrix measures the sensitivity of the solution of a system of linear equations to errors in the data. It gives an indication of the accuracy of the results from matrix inversion and the linear equation solution. .. seealso:: :ref:`overview-mathematic`, :ref:`norm`, :ref:`hilb` :sub:`id-783354`