Ignore:
Timestamp:
Dec 23, 2011, 11:56:21 PM (12 years ago)
Author:
sommeria
Message:

series modified using 'uitable'. Bugs need to be corrected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r343 r350  
    4040
    4141%% get input root name and nomenclature type
    42 % [RootPath,RootFile,~,~,~,~,FileExt,NomType,SubDir]=name2display(fileinput);
    4342[RootPath,SubDir,RootFile,~,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput);
    4443
     
    180179    % look for the numerical string of the first files to update the NomType (take into account the 0 before the number)
    181180    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
    183186    [~,ifile]=min(ref_ij(ref_ij>0));
     187    if isempty(ifile)
     188        RootPath='';
     189        RootFile='';
     190        NomType='';
     191    else
    184192    [~,~,~,~,~,~,~,~,NomType]=fileparts_uvmat(dirpair(ifile).name);
     193    end
    185194end
    186195
Note: See TracChangeset for help on using the changeset viewer.