inv
- :
X =inv(A)¶ - :
[X, rc] =inv(A)¶ Compute the inverse of the square matrix A.
The optional second output rc is an estimate of the reciprocal condition number of A in the 1-norm. If A is exactly singular, every element of X is
Infand a warning is issued; if A is nearly singular, the result is still computed but a warning reports the condition estimate. Triangular input is inverted by substitution.Inverting a matrix explicitly is rarely required. To solve a linear system, use
A \ binstead.