Changeset 385 for trunk/src/find_file_series.m
- Timestamp:
- Mar 29, 2012, 4:50:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_file_series.m
r384 r385 67 67 NomTypePref=''; 68 68 RootFileNew=RootFile; 69 if ~isempty(regexp(NomType,['^_'])) 70 NomTypePref='_'; 71 RootFileNew=[RootFileNew '_']; 72 end 73 r=regexp(NomType,['^' NomTypePref '(?<num1>\d+)'],'names');%look for a number at the beginning of NomTypeSt 69 % if ~isempty(regexp(NomType,['^_'])) 70 % NomTypePref='_'; 71 % RootFileNew=[RootFileNew '_']; 72 % end RootPath=''; 73 r=regexp(NomType,'^(?<tiretnum>_?\d+)','names');%look for a number or _1 at the beginning of NomType 74 % r=regexp(NomType,['^' NomTypePref '(?<num1>\d+)'],'names');%look for a number at the beginning of NomTypeSt 74 75 if ~isempty(r) 75 NomTypePref= [NomTypePref r.num1];76 NomTypePref=r.tiretnum; 76 77 fileinput_end=regexprep(fileinput,['^' RootFileNew],''); 77 78 r=regexp(fileinput_end,'^(?<num1>\d+)','names'); … … 85 86 j1_input=[]; 86 87 j2_input=[]; 88 else 89 NomTypePref=''; 87 90 end 88 91 end … … 154 157 ref_j_list=zeros(1,nbpair); 155 158 if nbpair==0% no detected file 156 RootPath='';159 % RootPath=''; 157 160 RootFile=''; 158 161 end … … 223 226 [tild,ifile_min]=min(ref_ij(ref_ij>0)); 224 227 if isempty(ifile_min) 225 RootPath='';228 % RootPath=''; 226 229 RootFile=''; 227 230 NomType='';
Note: See TracChangeset
for help on using the changeset viewer.