octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #40576] Assignment to Cell Array of Structure Fields Gives invalid assignment Error
Date: Thu, 14 Nov 2013 14:22:48 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36

Update of bug #40576 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   3.6.4 => dev                    

    _______________________________________________________

Follow-up Comment #3:

I see the same thing with 3.6.4 and the development version. Requires a cell
array with ndims > 2, a trailing singleton dimension, and assignment to a
field of a structure contained in that cell array.


x = cell (1, 1);
ndims (x)
ans =  2  # no problem here

x = cell (3, 2, 2);
ndims (x)
ans =  3
x{1,1,1}.y = 0;  # no error

x = cell (3, 2, 1);
ndims (x)
ans =  2
x{1,1,1}.y = 0;  # error
x{1,1,1} = 0;    # no error

x = cell (5, 5, 5, 1, 1, 1);
ndims (x)
ans =  3


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40576>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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