Back to Linear Algebra
pinv
Moore-Penrose pseudo-inverse
Syntax
B = pinv(A)
Description
Computes the pseudo-inverse of a matrix. Works for non-square and singular matrices.
Parameters
| Name | Description |
|---|---|
| A | Input matrix (m×n) |
Returns
Pseudo-inverse matrix (n×m)
Examples
Try It
>> pinv([1 0; 0 0])