MATLAB pinv

The pinv function calculates the pseudoinverse of any matrix.


Usage

To solve the problem Ax = b for any size matrix A, try:

x = pinv(A) * b;


CategoryRicottone