[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Save of lists and structs
From: |
John W. Eaton |
Subject: |
Save of lists and structs |
Date: |
Thu, 11 Nov 2004 14:54:01 -0500 |
On 11-Nov-2004, Dr. Michael Martins <address@hidden> wrote:
| I have a problem saving a complex list with octave. Below is a function
| ldddat, which reads experimental data and stores it into a struct; attached
| is a small part of a data file.
|
| To store data from different files I use the command
| 'd(no) = lddat(datafilename)'
| creating a list d, which contains the data from different measurements and
are
| indexed with no. Up to here everything works perfect. However, I would like
| to store the complete list d with additional informations. Therefore I use
|
| save -mat-binary daten.mat d
|
| Unfortunately I am not able to read the data again!
|
| This is, what is written into the file
| ---------------
| {
| B =
|
| (,
| [1] = [](0x0)
| [2] = [](0x0)
| [3] = [](0x0)
| [4] = [](0x0)
| [5] = 0
| ,)
|
| dat =
|
| (,
| [1] = [](0x0)
| [2] = [](0x0)
| [3] = [](0x0)
| [4] = [](0x0)
| [5] =
| 7.6300e+02 2.0714e-09 1.0140e-10 9.1753e+01 3.9435e-10
| 8.4074e+00 2.2094e+01 -1.0245e+01 7.6302e+02
| more is coming
| --------------------
|
| But unfortunately I am getting back the following
| ----------------------------------------
| {
| B =
|
| (,
| [1] = [](0x0)
| [2] = [](0x0)
| [3] = -1
| [4] = [](0x0)
| [5] = [](0x0)
| ,)
|
| dat =
|
| (,
| [1] = [](0x0)
| [2] = [](0x0)
| [3] = [](0x0)
| [4] = [](0x0)
| [5] =
|
| 763.00
| more is coming
| -----------------------------------------
|
| Thus, there is either a problem in writing the data or reading it back. I
| would be really nice, if this problem could be solved. I am using octave
| 2.1.57 on a linux system.
I think this problem was recently fixed. 2.1.61 should work
correctly.
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------