- Timestamp:
- Apr 24, 2012, 8:04:17 AM (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_file_series.m
r388 r391 85 85 if exist(fullfile(RootPath,[RootFileNew '.xml']),'file') 86 86 RootFile=RootFileNew; 87 NomTypePref=r.tiretnum; 87 88 NomType=regexprep(NomType,['^' NomTypePref],''); 88 NomTypePref=r.tiretnum;89 89 i2_input=j2_input; 90 90 j1_input=[]; -
trunk/src/get_file_series.m
r376 r391 25 25 ref_j=first_j:incr_j:last_j; 26 26 end 27 Pairs=Param.Pairs;27 % Pairs=Param.Pairs; 28 28 r.mode=''; 29 if isfield (Pairs,'list_pair_civ')30 r=regexp(Pa irs.list_pair_civ,'(?<mode>(Di=)|(Dj=)) -*(?<num1>\d+)\|(?<num2>\d+)','names');29 if isfield(Param,'Pairs') && isfield (Param.Pairs,'list_pair_civ') 30 r=regexp(Param.Pairs.list_pair_civ,'(?<mode>(Di=)|(Dj=)) -*(?<num1>\d+)\|(?<num2>\d+)','names'); 31 31 if isempty(r) 32 r=regexp(Pa irs.list_pair_civ,'(?<num1>\d+)(?<mode>-)(?<num2>\d+)','names');32 r=regexp(Param.Pairs.list_pair_civ,'(?<num1>\d+)(?<mode>-)(?<num2>\d+)','names'); 33 33 end 34 34 35 % TODO case of free pairs: 35 36 %r=regexp(pair_string,'.*\D(?<num1>[\d+|*])(?<delim>[-||])(?<num2>[\d+|*])','names'); 36 37 end 38 if isempty(r.mode) 39 r.num1=''; 40 r.num2=''; 41 end 37 42 38 43 %% determine the list of input file names … … 62 67 function [i1_series,i2_series,j1_series,j2_series]=find_file_indices(ref_i,ref_j,num1,num2,mode) 63 68 i1_series=ref_i;%default 69 i2_series=[]; 70 j2_series=[]; 71 if isempty(mode) 72 i1_series=ref_i; 73 j1_series=ref_j; 74 return 75 end 64 76 j1_series=[]; 65 77 if ~isempty(ref_j) … … 67 79 j1_series=meshgrid(ref_i,ones(size(ref_j))); 68 80 end 69 i2_series=[]; 70 j2_series=[]; 81 71 82 switch mode 72 83 case 'Di=' % ='series(Di)')
Note: See TracChangeset
for help on using the changeset viewer.