Ignore:
Timestamp:
Oct 17, 2012, 10:36:43 PM (12 years ago)
Author:
sommeria
Message:

find_file_series modified to deal with zero indices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r512 r554  
    190190                end
    191191            end
     192            if i1==0
     193                i1=-1;% set index 0 to -1 to distinguish from the absent index (set to 0)
     194            end
     195            if j1==0
     196                j1=-1;% set index 0 to -1 to distinguish from the absent index (set to 0)
     197            end
    192198            i1_series(ref_i+1,ref_j+1,nb_pairs+1)=i1;
    193199            if ~isempty(i2_input)
Note: See TracChangeset for help on using the changeset viewer.