xor
Find logical exclusive-OR
Syntax
Description
C = xor( performs a logical
exclusive-OR of inputs A,B)A and B and returns an
array or a table containing elements set to either logical 1
(true) or logical 0
(false). An element of the output is set to logical
1 (true) if A or
B, but not both, contains a nonzero element at that same
location. Otherwise, the element is set to 0.
For bit-wise logical XOR operations, see bitxor.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006aSee Also
bitxor | all | any | find | and | or | not | Short-Circuit
AND | Short-Circuit
OR