function [rho,theta] = complex2phasor(z)
% converts a complex number to a phasor
%
%  rho is the phasor magnitude
%  theta is the phasor angle in degrees

rho = abs(z);
theta = angle(z)*180/pi;