[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
arrays (matrices) of structures.
From: |
Gabe Foster |
Subject: |
arrays (matrices) of structures. |
Date: |
Wed, 17 Oct 2001 13:20:26 -0500 |
Hello,
I'm porting some code from matlab to octave. I'm not very familier
with
either package, so please pardon my ignorance. I'll try to keep this short.
The code I'm porting uses arrays of data structures. It has lines like:
b(1).a = 1.0
b(1).c = 2.0
b(2).a = 3.0
b(2).c = 4.0
etc.
Octave 2.0.16 gives a parse error when trying to parse these lines. Is
this
because it does not support arrays (or matrices) of structures?
Octave 2.1.34 seems to be ok with that syntax, but does not seem to
have a
path variable:
octave:1> path(path,"/home/gabe/octlib")
error: `path' undefined near line 1 column 1
error: evaluating index expression near line 1, column 1
Any help would be appreciated.
Thank you for you time...
--> Gabe
--
* J. Gabriel Foster "We have advanced to new and surprising
* Silicon Grail levels of bafflement" - Lois McMaster Bujold
* address@hidden
-------------------------------------------------------------
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
-------------------------------------------------------------
- arrays (matrices) of structures.,
Gabe Foster <=