# complex

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.

A = [1, 2, 3, 4]
B = [0, -2, -3, 9]
C = complex(A, B)
X = 1
Y = [1, 2, 3, 4]
Z = complex(X, Y)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported