det

det(X) returns the determinant of square matrix X.

Examples

> X = [1 2 3; 0 1 0; 2 1 0]#

            1            2            3
            0            1            0
            2            1            0

> det(X)#

 -6
>  X = [1 1 0; 1 1 0; 1 1 1]#

            1            1            0
            1            1            0
            1            1            1

> det(X)#

 0

Resources

See also

inv | lu | qr