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