bugGNU Octave - Bugs: bug #32172, 3d cell array does not work?

 
 

bug #32172: 3d cell array does not work?

Submitter:  wal <wal>
Submitted:  Tue 18 Jan 2011 03:18:48 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  wal Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Jan 2011 10:45:24 AM UTC, comment #2: 

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/de5fba8337c5

This seems to fix the problem for me, so I'm closing this report.

John W. Eaton <jwe>
Group administrator
Tue 18 Jan 2011 06:05:34 PM UTC, comment #1: 

Matab R2009B says:

>> a{1,1,1} = 1;
>> a{1,1,1} = ones(10);
>> a


a =

    [10x10 double]

>> whos

  Name      Size            Bytes  Class    Attributes

  a         1x1               912  cell              


Michael Godfrey <godfrey>
Group Member
Tue 18 Jan 2011 03:18:48 PM UTC, original submission:  

Assigning new data to a single existing cell for 3D cell arrays does not seem to work.

% the following works
clear a;
a{1} = 1;
a{1} = ones(10);

% This also following works
clear a;
a{1,1} = 1;
a{1,1} = ones(10);

% This does not work
clear a;
a{1,1,1} = 1;
a{1,1,1} = ones(10);


GNU Octave Version 3.2.4
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.34.7-0.7-default #1 SMP 2010-12-13 11:13:53 +0100 x86_64

wal <wal>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by wal (Submitted the item)
  • -email is unavailable- added by wal
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-19 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2011-01-18 wal Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code