Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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

collapse all

Find the imaginary part of the complex number, Z.

Z = 2+3i;

Y = imag(Z)
Y =

     3

More About

collapse all

Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

See Also

| | |

Introduced before R2006a

Was this topic helpful?