[Top][All Lists]

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

Re: Array of structs

From: A. Scottedward Hodel
Subject: Re: Array of structs
Date: Wed, 10 Nov 1999 12:50:43 -0600
User-agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513)

> on 11/10/99 12:08 PM, Ben Sapp at address@hidden wrote:

> 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.  

The closest we have to that is the list structure.  Had I the time (or the
money to pay John), it would be wonderful to upgrade the list structure to
something comparable with the Matlab cell structure.

A S Hodel Assoc. Prof. Dept Elect and Computer Eng, Auburn Univ,AL
On leave at NASA Marshall Space Flight Center (256) 544-1426
Address until 31 July 2000:Mail Code TD-55, MSFC, Alabama, 35812

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]