example 5.4
ZIP with MATLAB scripts and note:
example 5.4 notes:
[POZAR] analytic solution (pg 245) only gets open shunt stub lengths below half wavelength.
E_stub1=126
E_stub2=173.3
D_stub1=E_stub1/360
D_stub2=E_stub2/360
E_stub1 = 126
E_stub2 = 1.733000000000000e+02
D_stub1 = 0.350000000000000
D_stub2 = 0.481388888888889
ZL=60-1j*80;Z0=50;f0=2e9;
Z0=50;D3=1/8;Dstep=.001;
drange=[.1:Dstep:.9];
Zin4=zeros(numel(drange),numel(drange));
s11=zeros(numel(drange),numel(drange));
[D_1,D_2]=meshgrid(drange);
D1=.5; D2=.5;
% Zin=Z0*(ZL+1j*Z0*tan(2*pi*D))/(Z0+1j*ZL*tan(2*pi*D)) ;
% Zin_open_shunt=Z0/(1j*tan(2*pi*D))
D1=drange;D2=D1;
for k=1:1:numel(D1)
for s=1:1:numel(D2)
Zin_stub1=Z0./(1j*tan(2*pi*D1(k)));
Zin2=(Zin_stub1.^-1+ZL.^-1).^-1;
Zin3=Z0*(Zin2+1j*Z0*tan(2*pi*D3))./(Z0+1j*Zin2*tan(2*pi*D3)) ;
Zin_stub2=Z0./(1j*tan(2*pi*D2(s)));
Zin4(k,s)=(Zin_stub2.^-1+Zin3.^-1).^-1;
s11(k,s)=(Zin4(k,s)-Z0)/(Zin4(k,s)+Z0);
end
end
figure(1);surf(abs(s11),'LineStyle','none');
ax=gca
ax.PlotBoxAspectRatio=[1 1 1]
one way to spot |s11| minima is manually moving view point and using the marker
axes: X is D2 and Y is D1
D1(351)
D2(483)
D1(206)
D2(145)
D1(351)= 0.350000000000000
D2(483) = 0.482000000000000
D1(206) = 0.205000000000000
D2(145) = 0.144000000000000