Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

det - Compute the 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])

The result is:

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)

The result is:

A =
[ 2/3, 1/3]
[   1,   1]
 
r =
1/3

See Also

eig | rank

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS