function X = xor(S,T)
%XOR Logical EXCLUSIVE OR.
%   XOR(S,T) is the logical symmetric difference of elements S and T.
%   The result is one where either S or T, but not both, is nonzero.
%   The result is zero where S and T are both zero or nonzero.  S and T
%   must have the same dimensions (or one can be a scalar).
%
%   See also OR, RELOP.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.9 $  $Date: 1997/11/21 23:40:27 $

X = (S|T) & ~(S&T);
