Skip to content

imag

Imaginary part of a complex number.

Y = imag(X)

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

imag(3 + 4i) % 4
  • real — Real part of a complex number.
  • conj — Complex conjugate.
  • abs — Absolute value.