Main Content

Complex Numbers

Real and imaginary components, phase angles

In MATLAB®, i and j represent the basic imaginary unit. You can use them to create complex numbers such as 2i+5. You can also determine the real and imaginary parts of complex numbers and compute other common values such as phase and angle.

Functions

absAbsolute value and complex magnitude
anglePhase angle
complexCreate complex array
conjComplex conjugate
cplxpairSort complex numbers into complex conjugate pairs
iImaginary unit
imagImaginary part of complex number
isrealDetermine whether array uses complex storage
jImaginary unit
realReal part of complex number
signSign function (signum function)
unwrapShift phase angles

Topics

Plot Imaginary and Complex Data

Plot the imaginary part versus the real part of a complex vector.