From 68e20f06ea0e6145220fe443ec4c91991ac40462 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 22 Jul 2013 15:09:47 +0200 Subject: [PATCH] matlab: waveguide port fix Signed-off-by: Thorsten Liebig --- matlab/calcWGPort.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/calcWGPort.m b/matlab/calcWGPort.m index 031068e..a0610de 100644 --- a/matlab/calcWGPort.m +++ b/matlab/calcWGPort.m @@ -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