MATLAB: Converting rectangular form complex numbers into polar form

convertrectangular form

I am having trouble converting rectangular form complex numbers into polar form by writing a MATLAB script file.
I'm not fimular with MATLAB keywords but need to use this to prove my answers.
Z = 4 + j 5

Best Answer

You could have found this by searching right here(some one answered in 2014)...does it work for you?
x=2+3j
rho=abs(x)
theta=angle(x)
%-------------------
x=rho*exp(j*theta)