This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Compute determinant of symbolic matrix


r = det(A)


r = det(A) computes the determinant of A, where A is a symbolic or numeric matrix. det(A) returns a symbolic expression for a symbolic A and a numeric value for a numeric A.


Compute the determinant of the following symbolic matrix:

syms a b c d
det([a, b; c, d])
ans =
a*d - b*c

Compute the determinant of the following matrix containing the symbolic numbers:

A = sym([2/3 1/3; 1 1])
r = det(A)
A =
[ 2/3, 1/3]
[   1,   1]
r =

See Also


Introduced before R2006a

Was this topic helpful?