Changeset 662 for trunk/src/xml2struct.m
- Timestamp:
- Jul 11, 2013, 4:34:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml2struct.m
r655 r662 47 47 end 48 48 case 'char' 49 out=str2 num(ss);49 out=str2double(ss); 50 50 %if isempty(regexp(ss,'^(-*\d+\.*\d*\ *)+$'))% if the string does not contain a set of numbers (with possible sign and decimal) separated by blanks 51 if is empty(out)51 if isnan(out) 52 52 sep_ind=regexp(ss,'\s&\s');% check for separator ' & ' which indicates column separation in tables 53 53 if ~isempty(sep_ind) … … 59 59 out=ss; %reproduce the input string 60 60 end 61 % else62 % out=str2num(ss);63 61 end 64 62 case 'cell'
Note: See TracChangeset
for help on using the changeset viewer.