[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Array of structs
From: |
Ben Sapp |
Subject: |
Array of structs |
Date: |
Wed, 10 Nov 1999 11:08:06 -0700 |
Is it possible to create an array of structures? I want to do the
following
Create a structure f like so:
f =
{
header = ...
data = ...
}
then I would like an array of these structures. So I should be able to
access them like
f(4).header
or
f(3).data
I am reading the header and data in from a file and I do not know the
length of the array ahead of time.
Thanks.
--
Ben Sapp Los Alamos National Laboratory
email: <mailto:address@hidden> Phone: (505)667-3277
Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/
--
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- Array of structs,
Ben Sapp <=