Changeset 655 for trunk/src/xml2struct.m
- Timestamp:
- Jul 1, 2013, 9:12:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml2struct.m
r565 r655 47 47 end 48 48 case 'char' 49 if isempty(regexp(ss,'^(-*\d+\.*\d*\ *)+$'))% if the string does not contains a set of numbers (with possible sign and decimal) separated by blanks 49 out=str2num(ss); 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 isempty(out) 50 52 sep_ind=regexp(ss,'\s&\s');% check for separator ' & ' which indicates column separation in tables 51 53 if ~isempty(sep_ind) … … 57 59 out=ss; %reproduce the input string 58 60 end 59 else60 out=str2num(ss);61 % else 62 % out=str2num(ss); 61 63 end 62 64 case 'cell'
Note: See TracChangeset
for help on using the changeset viewer.