Changeset 662 for trunk/src/xml2struct.m


Ignore:
Timestamp:
Jul 11, 2013, 4:34:29 PM (11 years ago)
Author:
sommeria
Message:

bug corrected in xml2struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xml2struct.m

    r655 r662  
    4747        end
    4848    case 'char'   
    49         out=str2num(ss);
     49        out=str2double(ss);
    5050        %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)
     51        if isnan(out)
    5252            sep_ind=regexp(ss,'\s&\s');% check for separator ' & ' which indicates column separation in tables
    5353            if ~isempty(sep_ind)
     
    5959                out=ss; %reproduce the input string
    6060            end
    61 %         else
    62 %             out=str2num(ss);
    6361        end
    6462    case 'cell'
Note: See TracChangeset for help on using the changeset viewer.