FUNCTION REFERENCE

det

Determinant.

Determinant.

Syntax

det(A)

Returns the determinant of a square matrix, computed by LU factorization.

Example

det([1 2; 3 4])   % -2 (up to rounding)

Differences from MATLAB: real input must be double with finite values. Complex double input works as in MATLAB (LU pivoting by |re|+|im|; a zero imaginary part gives a real result; det(complex([])) is 1).

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.