imag

Imaginary part of an complex number.

Syntax

  • im = imag(M)

Input argument

  • M - a variable

Output argument

  • R - imaginary part of the elements of the complex array M.

Description

R = imag(M) Return the imaginary part of M.

Example

cplx = 22+34*i;
r = imag(cplx)

See also

real.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated