function z = bsxmax(x, y) % bsxmax(x, y) = bsxfun(@max, x, y); % Binary "Binary maximum" operator applied element-wise to x and y. % Singleton dimensions are implicitly expanded to make x and y match in size. z = bsxfun(@max, x, y);