Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS