Changeset 390 for trunk/src


Ignore:
Timestamp:
Apr 24, 2012, 8:00:02 AM (13 years ago)
Author:
sommeria
Message:

bug corrected in fileparts_uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fileparts_uvmat.m

    r384 r390  
    134134
    135135%% suppress '_' at the end of RootFile, put it on NomType
    136 if strcmp(RootFile(end),'_')
    137     RootFile(end)=[];
     136% if strcmp(RootFile(end),'_')
     137%     RootFile(end)=[];
     138detect=regexp(RootFile,'_$'); %detect '_' at the end of RootFILE
     139if ~isempty(detect)
     140    RootFile=regexprep(RootFile,'_$','');
    138141    NomType=['_' NomType];
    139142end
Note: See TracChangeset for help on using the changeset viewer.