Skip to content

real

Real part of a complex number.

Y = real(X)

Returns the real part of X. Element-wise; for real inputs, returns X unchanged.

real(3 + 4i) % 3
  • imag — Imaginary part of a complex number.
  • conj — Complex conjugate.
  • abs — Absolute value.
  • phase — Phase angle of a complex number (radians).