# xor

Exclusive-OR

### xor(A, B)

• A and B should be array of the same sizes. It performs elementwise exclusive-or between A and B.
• Zero is considered as logical 0, otherwise logical 1.

Example 1:

xor(1,1)
xor(1,0)
xor(-1,1)
xor(-1,0)

ans =
0

ans =
1

ans =
0

ans =
1