Ignore:
Timestamp:
Jun 17, 2012, 10:50:20 PM (12 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r445 r456  
    235235    end
    236236    %[tild,ifile_min]=min(ref_ij(ref_ij>0));
    237     ifile_min=find(ref_ij>0 , 1);
    238     if isempty(ifile_min)
     237    ind_select=find(ref_ij>0);
     238    if isempty(ind_select)
    239239        %         RootPath='';
    240240        RootFile='';
    241241        NomType='';
    242242    else
     243        [tild,ifile_min]=min(ref_ij(ind_select));
    243244        [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)
    244245        NomType=regexprep(NomType,['^' NomTypePref],'');
Note: See TracChangeset for help on using the changeset viewer.