Contents Previous Next Subchapters

The Imaginary Part Function
Syntax imag(z)
See Also isreal , conj , double , real , complex

Description
Returns the element-by-element imaginary part of z, where z is a complex, double-precision, real, or integer matrix. The return value is double-precision.

Example
     z = 1 - 1i0
     imag(z)
returns
     -1