function z = bsxxor(x, y) % bsxxor(x, y) = bsxfun(@xor, x, y); % Binary "Logical EXCLUSIVE OR" operator applied element-wise to x and y. % Singleton dimensions are implicitly expanded to make x and y match in size. z = bsxfun(@xor, x, y);