Changeset 350 for trunk/src/find_file_series.m
- Timestamp:
- Dec 23, 2011, 11:56:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_file_series.m
r343 r350 40 40 41 41 %% get input root name and nomenclature type 42 % [RootPath,RootFile,~,~,~,~,FileExt,NomType,SubDir]=name2display(fileinput);43 42 [RootPath,SubDir,RootFile,~,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput); 44 43 … … 180 179 % look for the numerical string of the first files to update the NomType (take into account the 0 before the number) 181 180 max_j=max(ref_j_list); 182 ref_ij=ref_i_list*max_j+ref_j_list; % ordered by index i, then by j for a given i. 181 if isempty(max_j) 182 ref_ij=ref_i_list; 183 else 184 ref_ij=ref_i_list*max_j+ref_j_list; % ordered by index i, then by j for a given i. 185 end 183 186 [~,ifile]=min(ref_ij(ref_ij>0)); 187 if isempty(ifile) 188 RootPath=''; 189 RootFile=''; 190 NomType=''; 191 else 184 192 [~,~,~,~,~,~,~,~,NomType]=fileparts_uvmat(dirpair(ifile).name); 193 end 185 194 end 186 195
Note: See TracChangeset
for help on using the changeset viewer.