pinv(matrix)

Moore–Penrose pseudoinverse.

pinv([1V,2V])
matrixThe matrix to be inverted.
return valueThe inverted matrix.

It can be used with any kind of matrix. It is commonly used to solve linear systems of equations with least-squares fit.

Supports complex matrices as well as matrices with quantities.