bugGNU Octave - Bugs: bug #39789, Error while indexing certain cell...


bug #39789: Error while indexing certain cell expressions

Submitted by:  None
Submitted on:  Thu 15 Aug 2013 08:24:47 AM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Alexander MamonovOriginator Email: -unavailable-
Open/Closed: OpenRelease: 3.6.4
Operating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun 25 Aug 2013 08:33:40 AM UTC, comment #2:

Looks like the issue is with octave failing to allow the second level of indexing in this case. In matlab:
in octave:

Ben Kurtz <bkurtz>
Tue 20 Aug 2013 05:08:25 AM UTC, comment #1:

Confirmed on a recent development tip (hg id bc924baa2c4e). The issue is with how trailing dimensions are treated, and it would be useful to know how Matlab behaves for the same code input if you have access to it.

The code

does not create a 1x1x1 cell array. In Octave and Matlab trailing singleton dimensions are usually removed so this becomes

This can be checked with

Your code sample works if the cell array is truly 3-dimensional.

Rik <rik5>
Project Administrator
Thu 15 Aug 2013 08:24:47 AM UTC, original submission:

When executing the following cell assignment

Octave gives an error:

error: a cs-list cannot be further indexed
error: assignment failed, or no method for 'cell = range'

Expected behavior is for c{1,1,1} to assume value
[1, 0; 1, 0; 1, 0; 1, 0; 1, 0]

If this bug is fixed, please add a relevant test to the test suite.



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

Attach File(s):

Attached Files
file #28848:  testcell111.m added by None (64B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Aug 2013 05:08:25 AM UTCrik5StatusNone=>Confirmed
    Thu 15 Aug 2013 08:24:47 AM UTCNoneAttached File-=>Added testcell111.m, #28848

    Back to the top

    Powered by Savane 3.1-cleanup