Changeset 333 for trunk/src


Ignore:
Timestamp:
Dec 13, 2011, 2:30:48 PM (12 years ago)
Author:
gostiaux
Message:

now pairs are included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fileparts_uvmat.m

    r327 r333  
    170170end
    171171
    172 
     172if ~isempty(regexp(NomType,'-|ab|AB'))
     173    r=regexp(RootPath,'\<(?<newrootpath>.+)(\\|/)(?<subdir>[^\\^/]+)(\\|/)*\>','names');
     174    if ~isempty(r)
     175    SubDir=r.subdir;
     176    RootPath=r.newrootpath;
     177    end
     178end
    173179
    174180
     
    260266for FileName=FileName_list
    261267%     [RootPath,RootFile,i1,i2,str_a,str_b,Ext,NomType,SubDir]=name2display(FileName{1});
    262     [~,RootFile_bis,i1_bis,i2_bis,j1_bis,j2_bis,~,NomType_bis,SubDir_bis]=...
     268    [~,RootFile,i1,i2,j1,j2,~,NomType,SubDir]=...
    263269        fileparts_uvmat(FileName{1});
    264270    fprintf([...
    265271        'File name  : ' FileName{1}  '\n'...
    266         '  NomType  : '    NomType_bis '\n'...
    267         '  RootFile : '    RootFile_bis '\n'...
    268         '  i1 / i2     : '     num2str(i1_bis) ' / ' num2str(i2_bis) '\n'...
    269         '  j1 / j2      : '    num2str(j1_bis) ' / ' num2str(j2_bis) '\n'...
     272        '  NomType  : '    NomType '\n'...
     273        '  RootFile : '    RootFile '\n'...
     274        '  i1 / i2     : '     num2str(i1) ' / ' num2str(i2) '\n'...
     275        '  j1 / j2      : '    num2str(j1) ' / ' num2str(j2) '\n'...
    270276        ]);
    271277end
Note: See TracChangeset for help on using the changeset viewer.