[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Loop over cell arrays.
From: |
John W. Eaton |
Subject: |
RE: Loop over cell arrays. |
Date: |
Thu, 26 Aug 2004 17:40:27 -0400 |
On 26-Aug-2004, Sean Smith <address@hidden> wrote:
| length(data)
| ans = -1
|
| that's my problem.
|
| size(data)
| ans =
|
| -1 -1
|
| nothing seems to access the dimensions of this thing.
What version of Octave are you using? It seems to work correctly with
the current recommended version, 2.1.57:
octave:1> x = {"foo", 1, "bar"};
octave:2> size (x)
ans =
1 3
octave:3> length (x)
ans = 3
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------