Changeset 1183 for trunk/src/imadoc2struct.m
- Timestamp:
- Nov 3, 2025, 2:54:33 PM (5 weeks ago)
- File:
-
- 1 edited
-
trunk/src/imadoc2struct.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imadoc2struct.m
r1178 r1183 41 41 [tild,tild,FileExt]=fileparts(ImaDoc); 42 42 43 if nargin ==1 43 if nargin ==1% no additional input variable beyond 'ImaDoc' 44 44 [s,Heading,errormsg]=xml2struct(ImaDoc);% convert the whole xml file in a structure s 45 elseif nargin ==2 45 elseif nargin ==2 %one additional input variable beyond 'ImaDoc'specifying the subtree to read 46 46 [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?47 else % case of two subtrees, TODO: deal with more than two subtrees? 48 48 [s,Heading,errormsg]=xml2struct(ImaDoc,varargin{1},varargin{2});% convert the xml file in a structure s, keeping only the subtree defined in input 49 49 end
Note: See TracChangeset
for help on using the changeset viewer.
