Skip to Main Content Skip to Search
Product Documentation

real - Real part of complex number

Syntax

X = real(Z)

Description

X = real(Z) returns the real part of the elements of the complex array Z.

Examples

real(2+3*i) is 2.

See Also

abs | angle | conj | i | imag | j

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS