gusucode.com > symbolic工具箱matlab源码程序 > symbolic/@sym/det.m

    function d = det(A)
%DET    Symbolic matrix determinant.
%   DET(A) is the determinant of the symbolic matrix A.
%
%   Examples:
%       det([a b;c d]) is a*d-b*c.

%   Copyright 2014 The MathWorks, Inc.

sz = size(formula(A));
if sz(1)~=sz(2)
    error(message('symbolic:det:SquareMatrix'));
end
d = privUnaryOp(A, 'symobj::det');
end