I am new in using MATLAB, I found a way to convert from rectangular to polar using
function [rho,theta] = r2p(x)[theta, rho] = cart2pol(real(x), imag(x));fprintf('[%g,%g]\n',theta, rho);Si = Pli+Qli*1i;Ii = (r2p(Si)/Vi);
it works but it only print the result it didnt save the value of theta. so i can't transform it back to rectangular again. any clue on how to save the theta data ?
In the program the value of Ii is only the magnitude value no angle or theta.
Best Answer