Complex Number Representation in Matlab

1 reply · 27K views · last reply
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
 
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.