help-octave
[Top][All Lists]
Advanced

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

Re: How can I save struct data?


From: Akira Nishimura
Subject: Re: How can I save struct data?
Date: Wed, 21 Apr 1999 18:53:40 +0900

From: Daniel Heiserer <address@hidden>
Subject: Re: How can I save struct data?
Date: Wed, 21 Apr 1999 11:12:35 +0200

>> octave:6> save -ascii a.mat a
>> error: save: wrong type argument `struct'
>> error: evaluating index expression near line 6, column 1
>> octave:6> a.p1
>> ans =
>> 
>>   0.10000  0.30000  0.50000  0.70000  0.90000
>> octave:7> save a.mat a.p1
>> warning: save: no such variable `a.p1'
>> 
>
>saving octave data as a mat-file is only supported for matlab-4 files.
>Matlab 4 had no structs and no cells. This is supported by matlab 5
>which's
>binary structure is different and not published. 

Althogh my .octaverc file has a `default_save_format = "mat-binary";'
line, it doesn't effect this problem. Because, 

octave:6> save -ascii a.mat a
error: save: wrong type argument `struct'
error: evaluating index expression near line 6, column 1
octave:6> save -binary some_data_file_name a
error: save: wrong type argument `struct'
error: evaluating index expression near line 6, column 1

also fails.

Can Octave save structure data in its original data format?

_/_/_/   _/  _/            _/            _/_/        Akira NISHIMURA
 _/     _/  _/            _/             |    Dept. of Information Systems
_/okyo  _/_/niversity of _/nformation _/_/ciences address@hidden
                   http://www.rsch.tuis.ac.jp/~akira




reply via email to

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