Main Content
bitxor
Bitwise XOR of two fi
objects
Syntax
Description
returns
the bitwise exclusive OR of c
= bitxor(a,b
)fi
objects a
and
b
in fi
object c
.
The output is determined as follows:
Elements in the output array
c
are assigned a value of1
when exactly one of the corresponding bits in the input arrays has a value of1
.Elements in the output array
c
are assigned a value of0
when the corresponding bits in the input arrays have the same value (e.g. both1
's or both0
's).
Note
This function only supports fi
objects with fixed-point data
types. To compute bitwise XOR of other data types, use the bitxor
function.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a