3 function pathStr=rmLastPathParts(pathStr,nPartsToRemove)
6 'pathStr cannot be empty');
9 nPartsInTotal=numel(indVec);
11 pathStr=pathStr(1:(indVec(nPartsInTotal-nPartsToRemove+1)-1));
14 function pathList=genPathByRootList(pathToIncludeCVec,pathPatternToExclude)
16 pathListOfLists=cellfun(@(x)
mxberry.
io.listdirsrecursive(x,...
17 [
'regex:^(?:(?!(',pathPatternToExclude,
')).)*$'],Inf),...
18 pathToIncludeCVec,
'UniformOutput',
false);
19 pathList=vertcat(pathListOfLists{:}).
';