help-octave
[Top][All Lists]
Advanced

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

Re: OCTAVE: Is Array3 available as a 3D array datatype in Octave


From: Bryce Gardner
Subject: Re: OCTAVE: Is Array3 available as a 3D array datatype in Octave
Date: Wed, 9 Jul 1997 16:41:15 +0500

Just a thought on multidimensional arrays:
One way to extend octave to handle fairly complex multidimensional data
structures would be to allow arrays of structures.

a(1).a=[1,2;3,4];
a(2).a=[5,6;7,8];

and then a(2).a(1,2) would access the 6 and a(:).a(1,1) would be [1;5] or [1,5].

This may not be as flexible as a true multidimensional array, but in a lot
of ways it may be more powerful.  I think the arrays of structures might be 
easier to implement and the syntax is probably obvious.

On the other hand, the syntax that Ted suggested would be easier to implement
in an m-file and to test before hard-coding it into octave.

Thats my 2-cents worth,

Bryce
address@hidden



reply via email to

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