%% Compute Determinant of Symbolic Matrix
% Compute the determinant of a symbolic matrix.

syms a b c d
M = [a b; c d];
B = det(M)

%
% Copyright 2006 The MathWorks, Inc.