Version:

Raises input elements to powers that you specify. power(a,b) is equivalent to a.^b.

## Syntax

c = power(a, b)

## a

Elements you want to raise to a power. a is a scalar or an array of any dimension.

## b

Powers to which you want to raise the elements in a. b is a scalar or an array of the same size as a.

## c

Values of a.^b. c is a scalar or an array of any dimension. If a is negative and b is not integer, c is complex.