tutorials: some fixes
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/10/head
parent
e27e4057e1
commit
c713f208c0
|
@ -78,7 +78,7 @@ p(1,end+1) = horn.radius; % x-coord point 1
|
|||
p(2,end) = 0; % z-coord point 1
|
||||
p(1,end+1) = horn.radius; % x-coord point 1
|
||||
p(2,end) = -horn.feed_length; % z-coord point 1
|
||||
CSX = AddRotPoly(CSX,'Conical_Horn',10,0,2,p);
|
||||
CSX = AddRotPoly(CSX,'Conical_Horn',10,'x',p,'z');
|
||||
|
||||
% horn aperture
|
||||
A = pi*((horn.radius + sin(horn.angle)*horn.length)*unit)^2;
|
||||
|
|
|
@ -134,7 +134,7 @@ port = calcPort(port, Sim_Path, freq);
|
|||
|
||||
Zin = port.uf.tot ./ port.if.tot;
|
||||
s11 = port.uf.ref ./ port.uf.inc;
|
||||
P_in = 0.5 * port.uf.inc .* conj( port.if.inc ); % antenna feed power
|
||||
P_in = 0.5*real(port.uf.tot).*conj(port.if.tot); % accepted antenna feed power
|
||||
|
||||
% plot feed point impedance
|
||||
figure
|
||||
|
|
Loading…
Reference in New Issue