Method on @sym: pinv (A)

Symbolic Moore-Penrose pseudoinverse of a matrix.

Example:

A = sym([1 2; 3 4; 5 6])
  ⇒ A = (sym 3×2 matrix)
      ⎡1  2⎤
      ⎢    ⎥
      ⎢3  4⎥
      ⎢    ⎥
      ⎣5  6⎦

pinv(A)
  ⇒ (sym 2×3 matrix)
      ⎡-4/3  -1/3   2/3 ⎤
      ⎢                 ⎥
      ⎢ 13              ⎥
      ⎢ ──   1/3   -5/12⎥
      ⎣ 12              ⎦

Package: symbolic