VSWRin=(1+Gimn)/(1-Gimn) % VSWRin should be unity since we used
% the constant operating gain approach
VSWRout=(1+Gomn)/(1-Gomn)
% 定义期望输入电压驻波比
VSWRin=1.5;
% 求出等驻波比圆方程参量
Gimn=(1-VSWRin)/(1+VSWRin)
dvimn=(1-Gimn^2)*conj(Gin)/(1-abs(Gimn*Gin)^2); % circle center
rvimn=(1-abs(Gin)^2)*abs(Gimn)/(1-abs(Gimn*Gin)^2); % circle radius
%在Smith圆图中画出 VSWRin=1.5 的圆
plot(real(dvimn)+rvimn*cos(a),imag(dvimn)+rvimn*sin(a),'g','linewidth',2);
text(real(dvimn)-0.15,imag(dvimn)+rvimn+0.05,...
strcat('\bfVSWR_{in}=',sprintf('%.1g',VSWRin)));
% 标出输入电压驻波比函数
% 在输入等驻波比圆上标出Gamm_s
Gs=dvimn+rvimn*exp(j*a);
Gout=s22+s12*s21*Gs./(1-s11*Gs);
%求出双共轭匹配反射系数
Gimn=abs((Gin-conj(Gs))./(1-Gin*Gs));
Gomn=abs((Gout-conj(GL))./(1-Gout*GL));
% 求出输入、输出端口的电压驻波比
VSWRin=(1+Gimn)./(1-Gimn);
VSWRout=(1+Gomn)./(1-Gomn);
figure; % 打开新的图建立关系图
plot(a/pi*180,VSWRout,'r',a/pi*180,VSWRin,'b','linewidth',2);
legend('VSWR_{out}','VSWR_{in}');
title('Input and output VSWR as a function of \Gamma_S position');
xlabel('Angle \alpha, deg.');
ylabel('Input and output VSWRs');
axis([0 360 1.3 2.3])
% 求出源反射系数
Gs=dvimn+rvimn*exp(j*85/180*pi);
% 求出相应的输出反射系数
Gout=s22+s12*s21*Gs./(1-s11*Gs);
% 计算符合要求的转换增益
GT=(1-abs(GL)^2)*abs(s21)^2.*(1-abs(Gs).^2)./abs(1-GL*Gout).^2./abs(1-Gs*s11).^2;
GT_dB=10*log10(GT)
% 求双共轭匹配端口输入输出增益
Gimn=abs((Gin-conj(Gs))./(1-Gin*Gs));
Gomn=abs((Gout-conj(GL))./(1-Gout*GL));
% ... and find the corresponding VSWRs
VSWRin=(1+Gimn)./(1-Gimn)
VSWRout=(1+Gomn)./(1-Gomn)
% 计算获得的实际噪声系数
F=Fmin+4*Rn/Z0*abs(Gs-Gopt)^2/(1-abs(Gs)^2)/abs(1+Gopt)^2;
F_dB=10*log10(F)
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>