Ignore:
Timestamp:
Feb 8, 2022, 1:58:47 PM (2 years ago)
Author:
sommeria
Message:

bug corrected in 3D calibration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xml2struct.m

    r1107 r1113  
    8484    case 'char'
    8585        % 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 file
    87             out=ss; %reproduce the input string
    88         else
     86%         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
    8989            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
    9090            if isempty(out)
     
    100100                end
    101101            end
    102         end
     102%         end
    103103    case 'cell'
    104104        out={};%default
Note: See TracChangeset for help on using the changeset viewer.