matlab: waveguide port fix
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/10/head
parent
a6f6baff2e
commit
68e20f06ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue