Complex Number Representation in Matlab

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 27K views
mcfetridges
Messages
13
Reaction score
0
Hey Everyone,

I cannot seem to find an way in Matlab to convert a number which has a real and imaginary part in cartesian form into polar form and then express the polar representation on the output.

Ex.

Convert
z=0.1602932442+0.8277219859*j

Into

0.8431<79.04 deg (without using my calc.)

Thanks
 
Physics news on Phys.org
Use abs(z) for the magnitude and angle(z) for the phase of z. Type "help abs" or "help angle" at the prompt for more help on these functions.