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