Skip to content

power

Elementwise power

power(A, B)

  • A and B should be arrays of the same sizes. Each element of A is raised to the power of the corresponding element of B. It gives the same result as A.^B.
  • If one of the input arguments is a scalar, this scalar would be expanded to a constant array having the same size as the other input argument.