field=sqrt(10^(3/10-3)); %dbm to sqrt(mw) vpi = 2; vbias = 1; vin = 0.1; (field * cos(pi/2*(vin+vbias)/vpi)).^2