%% Logical Negation of Matrix
% Create a 3-by-3 identity matrix.

A = eye(3)

%
% Find the logical negation of A. The new matrix has type logical.

B = ~A

% Copyright 2012 The MathWorks, Inc.