CommandsimagOn this pageimag imag (z) The imag function returns the imaginary component of the complex number z as a real (not complex) number. See Also cmplx, conj, p2rect, r2polar, real