Documentation

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

| | |

Introduced before R2006a

Was this topic helpful?