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