MatrixBerryCore
catwithsep.m
Go to the documentation of this file.
1 function outStr = catwithsep(inpStrList,sepStr)
2 outStr='';
3 nElems=numel(inpStrList);
4 for iElem=1:nElems
5  outStr=horzcat(outStr, inpStrList{iElem}, sepStr); %#ok<AGROW>
6 end
7 nSepSymb=length(sepStr);
8 outStr=outStr(1:(end-nSepSymb));
function catwithsep(in inpStrList, in sepStr)
CATWITHSEP concatenates input cell array of strings inserting a specified separator between the strin...