get label list from dir pre
0001 function labs=getlabs(pre) 0002 % get label list from dir pre 0003 dn=[pre '/p*.mat'];c=dir(dn);labs=[]; 0004 for j=1:length(c) 0005 cn=c(j).name;lab=cn(2:length(cn)-4);lab=str2num(lab); 0006 labs=[labs; lab]; 0007 end