Daniel@0: function path_out=pathsdiff(root_path,substr_notwanted) Daniel@0: path_out=''; Daniel@0: root_path=explode(';',root_path); Daniel@0: for i=1:size(root_path,2) Daniel@0: tmp_path=root_path{i}; Daniel@0: if(isempty(findstr(tmp_path,substr_notwanted))) Daniel@0: path_out=strcat(tmp_path,';',path_out ); Daniel@0: end Daniel@0: end