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 Apr 22 16:36:35 2017  
 
Category: InterpreterSeverity: 2 - Minor
Priority: 1 - LaterItem Group: WTF, Matlab?!?
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon Apr 24 02:02:05 2017, 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 Apr 23 14:22:50 2017, 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 Apr 23 14:06:45 2017, 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 Apr 22 16:36:35 2017, 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 ''.

So

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 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 mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by octavebugs (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Apr 23 14:22:50 2017rik5CategoryNone=>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.1-cleanup1