FUNCTION REFERENCE

xor

Element-wise exclusive OR.

Element-wise exclusive OR.

Syntax

xor(A, B)

True where exactly one of A and B is nonzero.

Example

xor([1 0], [1 1])   % [false true]

Differences from MATLAB: Exactly two arguments.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.