matlab: waveguide port fix

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/10/head
Thorsten Liebig 2013-07-22 15:09:47 +02:00
parent a6f6baff2e
commit 68e20f06ea
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ function [port] = calcWGPort( port, SimDir, f, varargin)
if (iscell(port))
for n=1:numel(port)
port{n}=calcTLPort(port{n}, SimDir, f, varargin{:});
port{n}=calcWGPort(port{n}, SimDir, f, varargin{:});
end
return;
end
@ -90,7 +90,6 @@ fc = C0*port.kc/2/pi/ref_index;
port.beta = sqrt(k.^2 - port.kc^2);
port.ZL = k * Z0 ./ port.beta; %analytic waveguide impedance
% reference plane shift (lossless)
if ~isnan(ref_shift)
% shift relative to the beginning of the waveguide