Changeset 919 for trunk/src/struct2xml.m


Ignore:
Timestamp:
Jun 26, 2015, 5:14:45 PM (9 years ago)
Author:
sommeria
Message:

netcdf files stored in 32 bits (not double)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/struct2xml.m

    r908 r919  
    1 %'struct2xml': transform a matlab structure to a xml tree.
     1%'struct2xml': transforms a matlab structure to a xml tree.
    22%--------------------------------------------------------------
     3%
    34% each field with char string or num vector is transformed into a corresponding  xml element
    45% each field with a matrix containing n lines is transformed into a xml element repeated n times
    5 % WARNING: PROBLEM WITH HIERARCHICAL structures
     6% each substructure of the input matlab structure is translateed into a subtree in the xml object
     7% it is also possible to append a subtree to an existing xml object t
     8%
     9% t=struct2xml(Object,t,root_uid)
    610%%%%%%%%%%%%%%%%%%%%%%%
    711% OUTPUT:
    812% t: xmltree reproducing the structure of Object
    913% type 'save(t)' to visualize the xml text and save(filename,t) to save it in a file
     14% to set the title tag of the file, type t=set(t,1,'name','titletag')
    1015%
    1116% INPUT:
    1217%  Object: matlab structure, possibly hierarchical
    13 %  t: optional input xml tree in which a new branch needs to be appended
     18%  t: optional input xml tree in which a subtree needs to be appended
    1419%  root_uid: optional uid of the xml element under which the new subtree must be appended
    1520
Note: See TracChangeset for help on using the changeset viewer.