| Symbolic Math Toolbox™ | ![]() |
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, 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*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
![]() | cosint | diag | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |