Complex numbers

Info

MATLAB can also handle complex numbers. If you have never heard of these before, then look them up in:

before you continue.

Walkthrough

Complex numbers may be entered as, for example,

z=3+4i

The real part, imaginary part, magnitude, argument (in radians) and complex conjugate of z may be evaluated using the following commands:

real(z)
imag(z)
abs(z)
angle(z)
conj(z)
Question

Question: What are the results of the above operations?

Expand for solution
  • real(z) = 3.
  • imag(z) = 4.
  • abs(z) = 5.
  • angle(z) = 0.9273.
  • conj(z) = 3-4i.