%% Calculate Determinant of Matrix
% Create a 3-by-3 square matrix, A.

A = [1 -2 4; -5 2 0; 1 0 3]

%
% Calculate the determinant of A.

d = det(A)

% Copyright 2012 The MathWorks, Inc.