Changeset 1113 for trunk/src/xml2struct.m
- Timestamp:
- Feb 8, 2022, 1:58:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml2struct.m
r1107 r1113 84 84 case 'char' 85 85 % try to convert to number if the char does not correspond to a function (otherwise str2num calls this function as it uses 'eval') 86 if exist(ss,'builtin')||exist(ss,'file')% ss corresponds to the name of a builtin Matlab function or a file87 out=ss; %reproduce the input string88 else86 % if exist(ss,'builtin')||exist(ss,'file')% ss corresponds to the name of a builtin Matlab function or a file 87 % out=ss; %reproduce the input string 88 % else 89 89 out=str2num(ss);% convert to number or vector (str2num applied to a fct name executes this fct by 'eval', thus this possibility had to be ruled out above 90 90 if isempty(out) … … 100 100 end 101 101 end 102 end102 % end 103 103 case 'cell' 104 104 out={};%default
Note: See TracChangeset
for help on using the changeset viewer.