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:

Constructs a complex matrix.

## Syntax

c = complex(a)
c = complex(a, b)

## a

Real parts of the complex elements. a is a real scalar or a real array of any dimension.

## b

Imaginary parts of the complex elements. b is a real scalar or real array of the same size as a.

## c

Complex matrix. c = complex(a) returns the elements of a as complex numbers.