纪录片ntation

imag

Imaginary part of complex number

Syntax

Y = imag(Z)

Description

Y = imag(Z)returns the imaginary part of the elements of arrayZ.

Examples

collapse all

Find the imaginary part of the complex number,Z.

Z = 2+3i; Y = imag(Z)
Y = 3

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

See Also

|||

Introduced before R2006a

Was this topic helpful?