From help-octave-request at bevo dot che dot wisc dot edu Wed Apr 21 01:39:59 1999 Subject: How can I save struct data? From: Akira Nishimura To: help-octave at bevo dot che dot wisc dot edu 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 akira at rsch dot tuis dot ac dot jp http://www.rsch.tuis.ac.jp/~akira