matlab: allow empty ports to be passed through

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
This commit is contained in:
Thorsten Liebig 2013-07-24 17:20:25 +02:00
parent eda30bacd3
commit e833c9eaf4

View File

@ -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