FUNCTION REFERENCE
complex
Build a complex array.
Build a complex array.
Syntax
complex(re, im)Syntax
complex(z)Combines real and imaginary parts. The result stays complex even if the imaginary part is zero.
Example
complex(1, 2) % 1 + 2iDifferences from MATLAB: Real, logical and complex 2-D arrays; N-D real or logical parts are accepted (a scalar part expands). Integer and single parts are not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.