det - Symbolic matrix determinant

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, if A is symbolic; a numeric value, if A is numeric.

Examples

The statements

syms a b c d;
det([a, b; c, d])

return

a*d - b*c

The statements

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

return

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

r = 1/3
  


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