inv
Compute the inverse matrix.
Syntax
x = inv(A)
[x,rcond] = inv(A)
Inputs
- A
- The matrix to invert.
Outputs
- x
- The inverse matrix.
- rcond
- An estimate of the condition number reciprocal.
Example
[x,rcond]=inv([1,2,3;5,6,8;5,4,7])
x = [Matrix] 3 x 3
-1.00000 0.20000 0.20000
-0.50000 0.80000 -0.70000
1.00000 -0.60000 0.40000
rcond = 0.0222222222