Usage notes and limitations:

If `A`

is a 2-by-2 or larger matrix and `B`

is
`Inf`

or `-Inf`

, then
`A^B`

returns a matrix of `NaN`

values.

For `A^b`

, if `b`

is a noninteger
scalar, then at least one of `A`

or
`b`

must be complex.

Code generation does not support sparse matrix inputs for this
function.

Usage notes and limitations:

If `A`

is a 2-by-2 or larger matrix and
`B`

is `Inf`

or
`-Inf`

, then `A^B`

returns a
matrix of `NaN`

values.

For `A^b`

, if `b`

is a noninteger
scalar, then at least one of `A`

or
`b`

must be complex.

Code generation does not support
sparse matrix inputs for this function.

Both inputs must be scalar, and the exponent input, `k`

,
must be an integer.

This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).

Usage notes and limitations:

For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).