This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Real part of complex number


X = real(Z)


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


collapse all

Compute the real part of the complex number, Z.

Z = 2+3*i;
X = real(Z)
X = 2

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

See Also

| | | | |

Introduced before R2006a