Changeset 317 for trunk/src/name2display.m
- Timestamp:
- Dec 5, 2011, 7:48:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/name2display.m
r293 r317 184 184 185 185 %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-1190 filename=name_generator(fullfile(RootPath,RootFile),1,1,ext,nom_type,1,1,1,subdir); 191 if exist(filename,'file')192 break193 else194 nom_type(ind_zero(1))=[]; % remove a zero in nom_type195 end196 end197 end186 % 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.