Computes the matrix power. powermx(a, b) is equivalent to a^b.
Scalar or square matrix of floating point or complex numbers. If b is a matrix, a must be a scalar.
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.
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.