From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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.