bugGNU Octave - Bugs: bug #50855, new Matlab string array syntax


bug #50855: new Matlab string array syntax

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sat 22 Apr 2017 04:36:35 PM UTC  
Category:  Interpreter Severity:  2 - Minor
Priority:  1 - Later Item Group:  WTF, Matlab?!?
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.2.1 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.


Mon 24 Apr 2017 02:02:05 AM UTC, comment #3:

Of course even before this syntax change could possibly be adopted, we need a working implementation of the string array type itself. That can be done with or without the change in how the double quote character is interpreted by Octave.

String array is a fundamental type, not a cell array, and follows different rules for lexical casting from other types and so on.

Mike Miller <mtmiller>
Project Administrator
Sun 23 Apr 2017 02:22:50 PM UTC, comment #2:

In terms of workarounds, it is quite easy not to use this specific feature of Matlab if you want to exchange scripts between the two environments. Just use the regular cell string construction operator if you do, in fact, want a cell array.

Rik <rik5>
Project Administrator
Sun 23 Apr 2017 02:06:45 PM UTC, comment #1:

I saw that. I don't know if they were being ornery and trying to force Octave to spend developer time catching up, or if they had simply run out of characters on a standard keyboard.

Rik <rik5>
Project Administrator
Sat 22 Apr 2017 04:36:35 PM UTC, original submission:

Not sure if you guys noticed but MATLAB recently introduced String arrays which may conflict with Octave's use of the double-quote "" versus ''.


str = ["Good" "morning"]

now produces a valid 1x2 string array.

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

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -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.


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



    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Fri 23 Mar 2018 05:11:57 PM UTC mtmiller Dependencies- => bugs #53439 is dependent
    Sun 23 Apr 2017 02:22:50 PM UTC rik5 CategoryNone => Interpreter
        Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 1 - Later
        StatusNone => Confirmed
        SummaryString array => new Matlab string array syntax

    Back to the top

    Powered by Savane 3.3