Code covered by the BSD License  

Highlights from
bsxops

from bsxops by Bruno Luong
Force MATLAB operators to behave BSXFUN-like

xor(x,y)
function res = xor(x,y)

if isequal(size(x),size(y)) || isscalar(x) || isscalar(y)
    res=builtin('xor',x,y);
else
    res=bsxfun(@xor,x,y);
end

Contact us at files@mathworks.com