v = [] for i=1:length(Xii) v(i) = ptker2(Xii{i},x); end function M=tmp global ALF ALF='AB'; REG=file2cellstr('regexp2'); M = regexp2nfsa(REG{1}); M = minimize_dfsa(n2dfsa(M)); %M = d2nfsa(minimize_dfsa(n2dfsa(M))); for j=2:length(REG) fprintf('processing %s \n',REG{j}); %M = union_nfsa(M,regexp2nfsa(REG{j})); %M = d2nfsa(minimize_dfsa(n2dfsa(M))); Mj = minimize_dfsa(n2dfsa(regexp2nfsa(REG{j}))); M = minimize_dfsa(union_dfsa(M,Mj)); end return