help-octave
[Top][All Lists]
Advanced

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

Re: Octave binary format


From: John Eaton
Subject: Re: Octave binary format
Date: Wed, 29 Mar 95 09:34:56 CST

address@hidden (Ted Harding) wrote:

: Hello All:
: 
: A question in an earlier posting may have got lost in the discussion
: about speed of fprintf.
: 
: The question was: can anyone point me to a specification of the
: octave binary-save format (or perhaps the MatLab one)?

The Octave binary format is briefly described in the comments before
the function read_binary_data() in load-save.cc.  The value of the
`magic number' mentioned there can be either Octave-1-L or Octave-1-B,
which serves to identify that the file is an Octave binary data file,
version 1, and that it was written on either a little-endian or
big-endian machine.

The Matlab data file format is described in some Matlab manual.  I
think it is the `External Reference Guide'.

Code for reading and writing both of these formats is in load-save.cc.
(Yes, it would be useful to have these functions in a separate library
that could be called from C, C++, etc.).

jwe


reply via email to

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