diff --git a/matlab/Tutorials/Conical_Horn_Antenna.m b/matlab/Tutorials/Conical_Horn_Antenna.m index f1955e8..97123a1 100644 --- a/matlab/Tutorials/Conical_Horn_Antenna.m +++ b/matlab/Tutorials/Conical_Horn_Antenna.m @@ -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; diff --git a/matlab/Tutorials/Helical_Antenna.m b/matlab/Tutorials/Helical_Antenna.m index 48b24f2..cccd997 100644 --- a/matlab/Tutorials/Helical_Antenna.m +++ b/matlab/Tutorials/Helical_Antenna.m @@ -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