Skip to Main Content Skip to Search
Product Documentation

mpower - Fixed-point matrix power (^)

Syntax

c = mpower(a,k)
c = a^k

Description

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

The fixed-point output array c is has no local fimath.

Tips

For more information about the mpower function, see the MATLAB arithmeticoperators reference page.

Examples

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

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

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

See Also

arithmeticoperators | power

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

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