tutorials: add new plotRefl showcase to patch antenna tutorial

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/19/merge
Thorsten Liebig 2016-11-29 20:54:34 +01:00
parent bcfbcd45ff
commit ed33316dcf
1 changed files with 5 additions and 2 deletions

View File

@ -115,10 +115,12 @@ RunOpenEMS( Sim_Path, Sim_CSX);
freq = linspace( max([1e9,f0-fc]), f0+fc, 501 ); freq = linspace( max([1e9,f0-fc]), f0+fc, 501 );
port = calcPort(port, Sim_Path, freq); port = calcPort(port, Sim_Path, freq);
Zin = port.uf.tot ./ port.if.tot; %% Smith chart port reflection
s11 = port.uf.ref ./ port.uf.inc; plotRefl(port, 'threshold', -10)
title( 'reflection coefficient' );
% plot feed point impedance % plot feed point impedance
Zin = port.uf.tot ./ port.if.tot;
figure figure
plot( freq/1e6, real(Zin), 'k-', 'Linewidth', 2 ); plot( freq/1e6, real(Zin), 'k-', 'Linewidth', 2 );
hold on hold on
@ -130,6 +132,7 @@ ylabel( 'impedance Z_{in} / Ohm' );
legend( 'real', 'imag' ); legend( 'real', 'imag' );
% plot reflection coefficient S11 % plot reflection coefficient S11
s11 = port.uf.ref ./ port.uf.inc;
figure figure
plot( freq/1e6, 20*log10(abs(s11)), 'k-', 'Linewidth', 2 ); plot( freq/1e6, 20*log10(abs(s11)), 'k-', 'Linewidth', 2 );
grid on grid on