| MATLAB Function Reference | Search  Help Desk |
| imag | Examples See Also |
Imaginary part of a complex number
Syntax
Y = imag(Z)
Description
Y = imag(Z)
returns the imaginary part of the elements of array Z.
Examples
imag(2+3i)
ans =
3
See Also
conj, i, j, real