[Top][All Lists]

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

structures in cell arrays

From: Paul Griffiths
Subject: structures in cell arrays
Date: Wed, 24 Sep 2003 10:52:21 -0500

I have seen that a cell array element can be a structure. (See:

The example given is:
octave:1> X{2,2}.bar(2).foo(2:3,2:3) = rand(2)

But I get the following error message when I try this statement:
error: matrix cannot be indexed with .
error: assignment failed, or no method for `<unknown type> = matrix'
error: evaluating assignment expression near line 1, column 28

I have tried this on versions 2.1.44 and 2.1.50. I don't even need
structure arrays. It would be sufficient if I could assign X{2,2}.a = 1. 

Is there a patch? I also wish to load and save cell arrays with structures.
If need be, I would consider contributing code to get this to work.

Paul Griffiths

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]