help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "save" to and "load" from file descriptor


From: Olaf Till
Subject: Re: "save" to and "load" from file descriptor
Date: Mon, 11 Jun 2007 21:26:41 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Jun 10, 2007 at 02:46:36PM -0400, Tom Holroyd (NIH/NIMH) [E] wrote:
> 
> For download visit http://sourceforge.net/projects/octave-xmltools/,
> if you're interested in the code, see
> http://www2.students.fh-vorarlberg.ac.at/~tge1468/xml_doc/index.html
> for doxygen doc. 
> 

Have tried octave-xmltools. It seems to work great. BTW it does not
preserve full double precision by default, one has to to put
e.g. 'xml.precision(15)' into ov_to_xml. Thanks again for recommending
this package.

So this probably will solve the problem. Still IMHO it is worth
considering to make octaves "save" and "load" code work on strings
(like octave-xmltools) or, better, on file descriptors (or
sockets). It would be more straightforward than producing XML strings
with an external tool and feeding them through the pipe by hand.

> 
> >This I do not understand. The cell arrays would have arbitrary
> >contents, so I do not think this would work.
> sprintf is just a way to serialize an octave data structure
> you have to parse the result on the other side, of course.
> 
> >
> >The xml code would be a possibility if it can produce byte strings,
> 
> 
> Have a look at the links above.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]