Command Reference : Matrix Language Reference
  
 
@pinverse
Syntax: @inverse(m)
Argument: matrix or sym, m
Return: matrix or sym
Returns the Moore-Penrose pseudo-inverse of a matrix object or sym. The pseudoinverse has the property that both pre-multiplying and post-multiplying the pseudo-inverse by the source matrix returns the source matrix, and that both pre-multiplying and post-multiplying the source matrix by the pseudo-inverse will return the inverse. The pseudo-inverse of a matrix returns a matrix, while the pseudo-inverse of a sym returns a sym. Note that pseudo-inverting a sym is much faster than inverting a matrix.
Examples:
matrix m2 = @pinverse(m1)
sym s2 = @pinverse(s1)
sym s3 = @pinverse(@implode(m2))