power - Array power
Syntax
Z = X.^Y
Description
Z = X.^Y denotes element-by-element powers. X and Y must
have the same dimensions unless one is a scalar. A scalar is expanded to an
array of the same size as the other input.
C = power(A,B) is called for the syntax 'A
.^ B' when A or B is an object.
Note that for a negative value X and a non-integer
value Y, if the abs(Y) is less than
one, the power function returns the complex roots. To
obtain the remaining real roots, use the nthroot function.
See Also
nthroot, realpow
 | pow2 | | ppval |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit