condΒΆ
cond calculates the condition number of a matrix.
- rsCond = cond(m)
Return Value
rsCond is the condition number.
Parameters
- m
m is a real or complex matrix.
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
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.
See also
id-783354