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