matlab: allow empty ports to be passed through

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/10/head
Thorsten Liebig 2013-07-24 17:20:25 +02:00
parent eda30bacd3
commit e833c9eaf4
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ if (iscell(port))
return; return;
end end
if isempty(port)
return;
end
if (strcmpi(port.type,'MSL') || strcmpi(port.type,'Coaxial')) if (strcmpi(port.type,'MSL') || strcmpi(port.type,'Coaxial'))
port = calcTLPort( port, SimDir, f, varargin{:}); port = calcTLPort( port, SimDir, f, varargin{:});
return return