real

Real part of an complex number.

Syntax

  • R = real(M)

Input argument

  • M - a variable

Output argument

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

Description

R = real(M) Return the real part of M.

Example

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

See also

imag.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated