inv

inv(X) returns the inverse of matrix X.

Examples

> X = [1 2; 3 4]#

            1            2
            3            4

> inv(X)#

           -2            1
          1.5         -0.5
			
> X * inv(X)#

            1            0
 8.88178e-016            1

See also

det | lu | qr