Ignore:
Timestamp:
Dec 29, 2011, 12:00:59 AM (9 years ago)
Author:
sommeria
Message:

functions adapted to Matlab version 2009 (~ replaced by 'tild' in function output)
svn test put under 'try' (error observed)
fullfile_uvmat introduced, aimed at replacing name_generator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_file_series.m

    r350 r353  
    4040
    4141%% get input root name and nomenclature type
    42 [RootPath,SubDir,RootFile,~,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput);
     42[RootPath,SubDir,RootFile,tild,i2_input,j1_input,j2_input,FileExt,NomType]=fileparts_uvmat(fileinput);
    4343
    4444%% check for particular file types: images, movies, civ data
     
    128128    end
    129129    for ifile=1:nbpair
    130         [~,~,~,i1,i2,j1,j2]=fileparts_uvmat(dirpair(ifile).name);
     130        [tild,tild,tild,i1,i2,j1,j2]=fileparts_uvmat(dirpair(ifile).name);
    131131        ref_i=i1;
    132132        if isempty(i2_input)
     
    184184        ref_ij=ref_i_list*max_j+ref_j_list; % ordered by index i, then by j for a given i.
    185185    end
    186     [~,ifile]=min(ref_ij(ref_ij>0));
     186    [tild,ifile]=min(ref_ij(ref_ij>0));
    187187    if isempty(ifile)
    188188        RootPath='';
     
    190190        NomType='';
    191191    else
    192     [~,~,~,~,~,~,~,~,NomType]=fileparts_uvmat(dirpair(ifile).name);
     192    [tild,tild,tild,tild,tild,tild,tild,tild,NomType]=fileparts_uvmat(dirpair(ifile).name);
    193193    end
    194194end
     
    203203if size(i2_series,3)>1 %pairs i1 -i2
    204204    diff_index=abs(i2_series-i1_series);
    205     [~,ind_pair]=sort(diff_index,3,'descend');
     205    [tild,ind_pair]=sort(diff_index,3,'descend');
    206206    for ref_i=1:size(i1_series,1)
    207207        for ref_j=1:size(j1_series,2)
     
    215215elseif size(j2_series,3)>1 %pairs j1 -j2
    216216    diff_index=abs(j2_series-j1_series);
    217     [~,ind_pair]=sort(diff_index,3,'descend');
     217    [tild,ind_pair]=sort(diff_index,3,'descend');
    218218    for ref_i=1:size(i1_series,1)
    219219        for ref_j=1:size(j1_series,2)
Note: See TracChangeset for help on using the changeset viewer.