Back to Linear Algebra
mpower
Matrix power
Syntax
B = mpower(A, n)
Description
Raises a square matrix to an integer power. Negative exponents compute the inverse raised to the absolute power.
Parameters
| Name | Description |
|---|---|
| A | Square matrix (n×n) |
| n | Integer exponent |
Returns
Matrix raised to power n