[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error on a simple struct assignment
From: |
Jaroslav Hajek |
Subject: |
Re: Error on a simple struct assignment |
Date: |
Thu, 1 Oct 2009 07:57:59 +0200 |
On Wed, Sep 30, 2009 at 11:49 AM, Eric Salemi
<address@hidden> wrote:
> Hi,
>
> I'm working with Octave 3.2.2 on a windows XP machine. I type the
> following 3 commands and get a error after the 3rd (you'll notice the
> 2nd and 3rd commands are exactly the same):
>
> > s = struct;
>
> > s(1,1,1).field1 = 0
> s =
> {
> field1 = 0
> }
>
> > s(1,1,1).field1 = 0
> error: invalid assignment to cs-list outside multiple assignment.
> error: assignment failed, or no method for `struct = scalar'
>
> Maybe there is something I don't understand, but I don't see why Octave
> consider s(1,1,1).field1 as a cs-list in the 3rd command. As a side
> note, doing the same with (2,2,2) as index works flawlessly. Can I
> consider this issue a bug? Is there a workaround?
>
> Eric.
>
>
Works for me with both 3.2.3 and 3.3.50+. I suggest you try 3.2.3.
hth
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Error on a simple struct assignment,
Jaroslav Hajek <=