www.gusucode.com > sloptim工具箱matlab源码程序 > sloptim/sloptim/@sroengine/utGetPortNameList.m
function strList = utGetPortNameList(ports) % UTGETPORTNAMELIST return a character vector with the name of the ports % % Copyright 2007-2016 The MathWorks, Inc. strList = ports.getFullName; if iscell(strList) strList = strList(:)'; %want a row vector commas = cell(size(strList)); [commas{:}] = deal(',\t'); commas{end} = ''; strList = vertcat(strList,commas); strList = strcat(strList{:}); strList = sprintf(strList); %Needed to process \t commands end