Ignore:
Timestamp:
Nov 3, 2025, 2:54:33 PM (5 weeks ago)
Author:
sommeria
Message:

bed_scan added + bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/imadoc2struct.m

    r1178 r1183  
    4141[tild,tild,FileExt]=fileparts(ImaDoc);
    4242
    43 if nargin ==1
     43if nargin ==1% no additional input variable beyond 'ImaDoc'
    4444    [s,Heading,errormsg]=xml2struct(ImaDoc);% convert the whole xml file in a structure s
    45 elseif nargin ==2
     45elseif nargin ==2 %one additional input variable beyond 'ImaDoc'specifying the subtree to read
    4646    [s,Heading,errormsg]=xml2struct(ImaDoc,varargin{1});% convert the xml file in a structure s, keeping only the subtree defined in input
    47 else %TODO: deal with more than two subtrees?
     47else % case of two subtrees, TODO: deal with more than two subtrees?
    4848    [s,Heading,errormsg]=xml2struct(ImaDoc,varargin{1},varargin{2});% convert the xml file in a structure s, keeping only the subtree defined in input
    4949end
Note: See TracChangeset for help on using the changeset viewer.