help-octave
[Top][All Lists]
Advanced

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

How can I save struct data?


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

I'm using Octave-2.0.13 and 2.0.14.

How can I save structure data or an element of the structure?

octave:5> a
a =
{
  p1 =

    0.10000  0.30000  0.50000  0.70000  0.90000

  p2 = hello
}

octave:6> save a.mat a
error: save: wrong type argument `struct'
error: evaluating index expression near line 6, column 1
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'

_/_/_/   _/  _/            _/            _/_/        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]