Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create complex array

`z = complex(a,b)`

`z = complex(x)`

If

`b`

contains only zeros, then`z`

is complex and the value of all its imaginary components is`0`

. In contrast, the addition`a + 0i`

returns a strictly real result.