This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Fixed-point array power (.^)


c = power(a,k)
c = a.^k


c = power(a,k) and c = a.^k compute element-by-element power. The exponent k requires a positive, real-valued integer value.

The fixed-point output array c has the same local fimath as the input a. If a has no local fimath, the output c also has no local fimath. The array power operation is performed using default fimath settings.


Compute the power of a 2-dimensional array for exponent values 0, 1, 2, and 3.

x = fi([0 1 2; 3 4 5], 1, 32);

px0 = x.^0 
px1 = x.^1 
px2 = x.^2
px3 = x.^3


For more information about the power function, see the MATLAB® power reference page.

Extended Capabilities

See Also


Introduced in R2010a

Was this topic helpful?