Raises input elements to powers that you specify. power(a,b) is equivalent to a.^b.
Elements you want to raise to a power. a is a scalar or an array of any dimension.
Powers to which you want to raise the elements in a. b is a scalar or an array of the same size as a.
Values of a.^b. c is a scalar or an array of any dimension. If a is negative and b is not integer, c is complex.