imag - Imaginary part of 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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS