pinv

Compute the matrix pseudo-inverse.

Syntax

R = pinv(x)

Inputs

A
The matrix to pseudo-invert.
Dimension: matrix

Outputs

R
The pseudo-inverse.

Example

R = pinv([1, 2; 3, 5; 4, 8])
R = [Matrix] 2 x 3
-0.29412   2.00000  -1.17647
 0.17647  -1.00000   0.70588