Ignore:
Timestamp:
Dec 5, 2011, 7:48:37 PM (13 years ago)
Author:
sommeria
Message:

bug repaired in name2display (names in _000001) and civ.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/name2display.m

    r293 r317  
    184184
    185185%resolve ambigous nomenclature types when the number of 0 is unknown (type %0...):
    186 ind_zero=findstr('0',nom_type);
    187 nb_zero=numel(ind_zero);
    188 if ~isempty(ind_zero)
    189     for itest=0:nb_zero-1
    190         filename=name_generator(fullfile(RootPath,RootFile),1,1,ext,nom_type,1,1,1,subdir);
    191         if exist(filename,'file')
    192             break
    193         else
    194             nom_type(ind_zero(1))=[]; % remove a zero in nom_type
    195         end
    196     end
    197 end
     186% ind_zero=findstr('0',nom_type);
     187% nb_zero=numel(ind_zero);
     188% if ~isempty(ind_zero)
     189%     for itest=0:nb_zero-1
     190%         filename=name_generator(fullfile(RootPath,RootFile),1,1,ext,nom_type,1,1,1,subdir)
     191%         if exist(filename,'file')
     192%             break
     193%         else
     194%             nom_type(ind_zero(1))=[]; % remove a zero in nom_type
     195%         end
     196%     end
     197% end
Note: See TracChangeset for help on using the changeset viewer.