Skip to content

mpower

Matrix power

mpower(A, b)

• A should be a square matrix or scalar, while b should be a scalar.
• It returns A raised to the power b.
• The following are currently NOT supported:
• matrix to negative power (e.g., [1 2;3 4]^-2),
• matrix to non-integer power (e.g., [1 2;3 4]^2.33),
• mpower() is equivalent to the operator ^. For elementwise power, use power() or the operator .^ instead.