There are in MATLAB logical functions such as and, or, xor.
And has its matrix equivalent all,
and so has or its any.
Write a function which is array equivalent for exclusive-OR function xor.
Note that your solution will be scored using its Cody size and complexity.