From help-octave-request at bevo dot che dot wisc dot edu Wed Nov 10 12:08:08 1999 Subject: Array of structs From: Ben Sapp To: help-octave at bevo dot che dot wisc dot edu 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: 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 -----------------------------------------------------------------------