Changeset 372 for trunk/src/find_file_series.m
- Timestamp:
- Jan 16, 2012, 12:28:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_file_series.m
r371 r372 37 37 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 38 38 39 function [RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,Object]=find_file_series(RootPath,fileinput )39 function [RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,Object]=find_file_series(RootPath,fileinput,option) 40 40 %------------------------------------------------------------------------ 41 41 if ~exist('option','var') 42 option='all'; 43 end 42 44 %% get input root name and nomenclature type 43 45 [tild,tild,RootFile,tild,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput); … … 103 105 end 104 106 105 if strcmp(NomType,'')||strcmp(NomType,'*') 107 if strcmp(NomType,'')||strcmp(NomType,'*')||strcmp(option,'filetype') 106 108 if exist(fullfileinput,'file') 107 109 [tild,RootFile]=fileparts(fileinput);% case of constant name (no indexing) … … 251 253 NomType=''; 252 254 else 253 [tild,tild,tild,tild,tild,tild,tild,tild,NomType]=fileparts_uvmat(dirpair(ifile_min).name); 254 end 255 [tild,tild,tild,tild,tild,tild,tild,tild,NomType]=fileparts_uvmat(dirpair(ifile_min).name);% update the representation of indices (number of 0 before the number) 256 end 257 end 258 259 %% update the file type if the input file does not exist (pb of 0001) 260 if strcmp(option,'filetype') 261 return 262 elseif isempty(FileType) 263 [tild,tild, tild,tild,tild,tild,FileType,Object]=find_file_series(RootPath,dirpair(ifile_min).name,'filetype'); 255 264 end 256 265
Note: See TracChangeset
for help on using the changeset viewer.