Changeset 332 for trunk/src/num2stra.m
- Timestamp:
- Dec 13, 2011, 11:20:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/num2stra.m
r122 r332 13 13 14 14 function str=num2stra(num,nom_type,index) 15 str=''; 15 16 if ~exist('index','var') 16 17 index=2; %index 1 or 2 of the file indices … … 18 19 switch index 19 20 case 1 20 if length(nom_type)>=4 && isequal(nom_type(1:2),'%0') && isequal(nom_type(4),'d')21 str=num2str(num,nom_type(1:4));22 else21 % if length(nom_type)>=4 && isequal(nom_type(1:2),'%0') && isequal(nom_type(4),'d') 22 % str=num2str(num,nom_type(1:4)); 23 % else 23 24 str=num2str(num); 24 end25 % end 25 26 case 2 26 if isempty(nom_type) 27 nom_type='none'; 28 end 29 if isequal(nom_type,'png_old') || isequal(nom_type,'netc_old') || isequal(nom_type,'raw_SMD')||... 30 isequal(nom_type(end),'a')||isequal(nom_type(end),'b') 27 if isequal(nom_type(end),'a')||isequal(nom_type(end),'b') 31 28 str=char(96+num); 32 29 elseif isequal(nom_type(end),'A')|isequal(nom_type(end),'B') 33 30 str=char(64+num); 34 elseif isequal(nom_type,'series_i')|isequal(nom_type,'netc_series')...35 |isequal(nom_type,'ima_num')| isequal(nom_type,'avi')| isequal(nom_type,'none')...36 isequal(nom_type,'_i')|isequal(nom_type,'_i1-i2')37 str='';31 % elseif isequal(nom_type,'series_i')|isequal(nom_type,'netc_series')... 32 % |isequal(nom_type,'ima_num')| isequal(nom_type,'avi')| isequal(nom_type,'none')... 33 % isequal(nom_type,'_i')|isequal(nom_type,'_i1-i2') 34 % str=''; 38 35 else 39 36 str=num2str(num);
Note: See TracChangeset
for help on using the changeset viewer.