Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

det

Compute determinant of symbolic matrix

Syntax

r = det(A)

Description

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.

Examples

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 =
1/3

See Also

|

Introduced before R2006a

Was this topic helpful?