det

Compute the matrix determinant.

Syntax

d = det(x)

[d,rcond] = det(x)

Inputs

x
A square matrix.
Dimension: matrix

Outputs

d
The determinant.
scalar
rcond
An estimate of the condition number reciprocal.
scalar

Example

[d,rcond]=det([1,2,3;5,6,8;5,4,7])
d = -10
rcond = 0.02222222222