diff --git a/matlab/calcPort.m b/matlab/calcPort.m index 14593c5..1a31698 100644 --- a/matlab/calcPort.m +++ b/matlab/calcPort.m @@ -46,6 +46,10 @@ if (iscell(port)) return; end +if isempty(port) + return; +end + if (strcmpi(port.type,'MSL') || strcmpi(port.type,'Coaxial')) port = calcTLPort( port, SimDir, f, varargin{:}); return