Version:

Computes the matrix power. powermx(a, b) is equivalent to a^b.

## Syntax

c = powermx(a, b)
Legacy name: mpower

## a

Scalar or square matrix of floating point or complex numbers. If b is a matrix, a must be a scalar.

## b

Scalar or square matrix of floating point or complex numbers. If a is a matrix, b must be a scalar. If both inputs are scalars, and one is of integer type, the other input must be of the same integer type or a double type.

## c

a^b. c is a square matrix. The output data type is not the greater data type of the two inputs. For example, if one input is double precision and the other input is single precision floating point number, the output is a single type.