6.-
single series short circuit stub ZL=90+1j*60;Z0=75
pozar_05_exercise_06.m
ZL=90+1j*60;Z0=75;
Dstep=.001;drange=[0:Dstep:1];
D1=drange;D2=D1;
[D1,D2]=meshgrid(drange);
Z1=Z0*(ZL+1j*Z0*tan(2*pi*D1))./(Z0+1j*ZL*tan(2*pi*D1));
Zin_stub=Z0*1j*tan(2*pi*D2); % series sc stub
Zin=Z1+Zin_stub;
s11=(Zin-Z0)./(Zin+Z0);
surf(abs(s11),'LineStyle','none')
xlabel('D1');ylabel('D2');
ax.XTickLabelMode='manual';
ax.YTickLabelMode='manual';
ax.XTickLabel=[0:0.1:1];ax.YTickLabel=[0:0.1:1];
ax.XTick=[0:100:1000];ax.YTick=[0:100:1000];
ax=gca;ax.PlotBoxAspectRatio=[1 1 1]
V=1e3*del2(abs(s11));
figure(2);ax=gca;surf(V,'Lines','none');
xlabel('D1');ylabel('D2');
ax.XTickLabelMode='manual';
ax.YTickLabelMode='manual'; ax.XTickLabel=[0:0.1:1];ax.YTickLabel=[0:0.1:1];
ax.XTick=[0:100:1000];ax.YTick=[0:100:1000];
[pks,locs]=findpeaks(V(:),'Threshold',1);
[nd1,nd2]=ind2sub(size(V),locs);
hold all;figure(2);plot3(nd2,nd1,V(nd2,nd1)+2,'ro'); % plot peaks
ax.PlotBoxAspectRatio=[1 1 1] % box D1<.5 D2<.5
x0=find(drange==.5)
figure(2);plot3([x0 x0 0],[0 x0 x0],[.5 .5 .5],'Color',[1 0 0],'LineWidth',3)
abs(s11(sub2ind(size(V),nd1,nd2))) =
0.001390798787950
0.001390798787950
0.002883920448033
0.002883920448033
0.001390798787950
0.001390798787950
0.002883920448033
0.002883920448033
unique(sort(drange(nd1)))' =
0.103000000000000
0.397000000000000
0.603000000000000
0.897000000000000
unique(sort(drange(nd2)))' =
0.174000000000000
0.482000000000000
0.674000000000000
0.982000000000000
numel(nd1) =
8
_________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com 1/ 1