Note: This page has been translated by MathWorks. Please click here

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

To view all translated materals including this page, select Japan 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.

Was this topic helpful?