bugGNU Octave - Bugs: bug #54576, MATLAB inconsistency when...


bug #54576: MATLAB inconsistency when assigning to nonexistent variable using subsref (:)

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sun 26 Aug 2018 05:56:27 PM UTC  
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Tue 28 Aug 2018 03:25:47 PM UTC, comment #4:

Okay, so the rule seems to be:

1) Any number of colons are allowed on the LHS of assignment
2) The RHS of assignment must be a scalar or vector, not a matrix

Rik <rik5>
Project Administrator
Tue 28 Aug 2018 03:59:32 AM UTC, comment #3:

No problem lowering priority. I just post the bugs when I run into them - typically when trying something off the matlab forums. It's hard to believe people come up with this stuff AND that it's valid syntax. Anyway... ;)


Ceral Paquet <octavebugs>
Mon 27 Aug 2018 05:59:14 PM UTC, comment #2:

Confirmed. I lowered the severity and the priority since there are workarounds available (don't use ':' indexing on non-existent variables).

This does seem like something worth modifying since I'm sure people code with the ':' even when they don't need it.

Could you also run these tests in Matlab

Rik <rik5>
Project Administrator
Sun 26 Aug 2018 06:07:50 PM UTC, comment #1:

Cell array: same thing.

Ceral Paquet <octavebugs>
Sun 26 Aug 2018 05:56:27 PM UTC, original submission:


Octave 4.4

Ceral Paquet <octavebugs>


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

Attach Files:

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 rik5 (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)

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

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-27 rik5 CategoryNone => Interpreter
        Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low
        StatusNone => Confirmed
        Release4.4.1 => dev

    Back to the top

    Powered by Savane 3.4