Symbolic Math Toolbox | Search  Help Desk | |
det | Examples |
r = det(A)
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.
The statements
syms a b c d; det([a, b; c, d])return
a*d - b*cThe statements
A = sym([2/3 1/3;1 1]) r = det(A)return
A = [ 2/3, 1/3] [ 1, 1] r = 1/3