Version:

Returns the imaginary parts of the input elements.

Syntax

c = imag(a)

a

Scalar or array of any dimension of numeric or Boolean values.

c

Imaginary parts of the elements in a. c is an array of the same size as a.