help-octave
[Top][All Lists]
Advanced

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

Re: Jagged arrays


From: Quentin Spencer
Subject: Re: Jagged arrays
Date: Sat, 11 Nov 2006 00:17:44 -0600
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Masatran, R. Deepak wrote:
Are jagged arrays available in Octave? I mean, can the rows of some data
structure have different number of columns? I searched using Google but
could not find it.


You could do something like this using cell arrays:

a{1}=[1,2,3,4];
a{2}=[1,2];

The i-th element of the j-th cell would be referenced using a{j}[i].


Quentin


reply via email to

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