bugGNU Octave - Bugs: bug #52001, error assigning to a slice of a 3d...

 
 

bug #52001: error assigning to a slice of a 3d matrix

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Tue 12 Sep 2017 01:06:47 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 12 Sep 2017 10:08:10 PM UTC, comment #2:

Confirmed. I can probably understand why as well. Since the variable doesn't exist, all trailing dimensions are probably set to 1 so the implied size is 0x0x1. The ':' indexing operator selects that last dimension, but it has size of one versus a size of three. This squares with the error message issued

I'm guessing that this would be relatively hard to solve since it involves adding a very special corner case.

Rik <rik5>
Project Administrator
Tue 12 Sep 2017 01:53:50 PM UTC, comment #1:

interesting. it works (in 4.2.1) if you specify the 3rd range:

Nicholas Jankowski <nrjank>
Tue 12 Sep 2017 01:06:47 PM UTC, original submission:

The following works in matlab (2016b):

while in Octave 4.3+ it produces an error

Carlo de Falco <cdf>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 nrjank (Posted a comment)
  • -unavailable- added by cdf (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 Sep 2017 10:08:10 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1