Imaginary part of a complex number
Syntax
Y = imag(Z)
Description
Y = imag(Z) returns the imaginary part of the elements of array Z.
Z
Examples
imag(2+3i) ans = 3
See Also
conj, i, j, real
conj
i
j
real
© 1994-2005 The MathWorks, Inc.