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 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.11 $  $Date: 2000/06/01 04:40:04 $

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