Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

VersionDescription
1.0.0initial version

Author

Allan CORNET