help-octave
[Top][All Lists]
Advanced

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

saving lists as .bin or .mat file


From: E. Joshua Rigler
Subject: saving lists as .bin or .mat file
Date: 07 Mar 2002 17:27:53 -0700

I get an error when trying to save a list data type in an Octave binary
file, or a Matlab binary file.  Of course since Matlab doesn't really
have a data type "list", this make sense, but it seems as if Octave
should be able to save/load it.  

What's more, when I try to load the octave binary, the list variable
name gets reassigned to another variable that was saved.  In other
words, giving the following output from "whos", the variables
"lpf_6_list" and "lpf_12_list" should be of data type list, not matrix,
and upon checking their values, they are the same as the missing
variables "int_ELO_1_5" and "int_ELO_4_0"...

original:

 rwd  matrix                    32640      1  int_ELO_1_5 (*)
 rwd  matrix                    32640      1  int_ELO_2_0
 rwd  matrix                    32640      1  int_ELO_3_0
 rwd  matrix                    32640      1  int_ELO_4_0 (*)
 rwd  matrix                    32640      1  int_ELO_5_0
 rwd  matrix                    32640      1  int_ELO_6_0
 rwd  matrix                    32640      1  int_ELO_6_5
 rwd  matrix                    32640      1  int_ELO_7_0
 rwd  matrix                    32640     70  int_ELO_all
 rwd  matrix                      301     71  lpf_12
 rwd  list                          -      -  lpf_12_list (*)
 rwd  matrix                      301     71  lpf_6
 rwd  list                          -      -  lpf_6_list  (*)

saved and reloaded:

 rwd  matrix                    32640      1  int_ELO_2_0
 rwd  matrix                    32640      1  int_ELO_3_0
 rwd  matrix                    32640      1  int_ELO_5_0
 rwd  matrix                    32640      1  int_ELO_6_0
 rwd  matrix                    32640      1  int_ELO_6_5
 rwd  matrix                    32640      1  int_ELO_7_0
 rwd  matrix                    32640     70  int_ELO_all
 rwd  matrix                      301     71  lpf_12
 rwd  matrix                    32640      1  lpf_12_list (*)
 rwd  matrix                      301     71  lpf_6
 rwd  matrix                    32640      1  lpf_6_list  (*)


Does anyone have a suggestion around this problem, or is it necessary to
extract the information in my lists to regular variables before saving
my session?  I'm using 2.1.35, with octave-forge, on Linux.

Thanks,

-EJR





-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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