%% Execute Logic Statement
% false along with true can be used to execute logic statements.
% Test the logical statement
%   ~(A and B) = (~A) or (~B)
% for A = false and B = true.

~(false & true) == (~false) | (~true)

% The result is logical 1 (true), since the logical statements on both sides of the equation are equivalent. This logical statement is an instance of De Morgan's Law.
% Copyright 2012 The MathWorks, Inc.