Changeset 655 for trunk/src/xml2struct.m


Ignore:
Timestamp:
Jul 1, 2013, 9:12:01 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xml2struct.m

    r565 r655  
    4747        end
    4848    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)
    5052            sep_ind=regexp(ss,'\s&\s');% check for separator ' & ' which indicates column separation in tables
    5153            if ~isempty(sep_ind)
     
    5759                out=ss; %reproduce the input string
    5860            end
    59         else
    60             out=str2num(ss);
     61%         else
     62%             out=str2num(ss);
    6163        end
    6264    case 'cell'
Note: See TracChangeset for help on using the changeset viewer.