[Top][All Lists]

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

allow loads into a structure variable

From: John W. Eaton
Subject: allow loads into a structure variable
Date: Mon, 30 Oct 2000 20:07:47 -0600

On 30-Oct-2000, Kian Ming Adam Chai <address@hidden> wrote:

|   The patch allows octave to load variables from a file into a structure
| variable, which is possible in Matlab. Patch is against 2.0.14. Cd to
| octave source and use patch -p1

I've included similar changes in the current development sources of
Octave.  The primary difference is that if Octave is reading a file of
numbers only, x = load ("foo.dat") will return the data as a matrix,
not a structure.  Otherwise, if the file contains data with some
structure (Octaves ascii or binary formats, Matlab v4 or v5 binary
formats, or HDF5 data) s = load ("foo.dat") will return a structure
with elements named after the variables in the file.

In the future, please consider making changes to the current
development sources instead.  This is especially true for any
significant changes.



reply via email to

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