%returns complex pair with magnitude and phase(degrees);
%The phase is the angle from positive real axis.
% exact code:
% function Z = pair(mag,phase)
% Z = mag*exp([i -i]*pi*phase/180);
function Z = pair(mag,phase)
Z = mag*exp([i -i]*pi*phase/180);