bugGNU Octave - Bugs: bug #49283, Cell array: error compared to...

 
 

bug #49283: Cell array: error compared to Matlab

Submitter:  Steven Weinberg <wstevena>
Submitted:  Thu 06 Oct 2016 01:47:43 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  wstevena Open/Closed:  * Closed
Release:  * 4.0.3 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 06 Oct 2016 03:13:54 PM UTC, comment #3: 

Agree, this did fail in 4.0.3, but does work in 4.2, closing as fixed.

Mike Miller <mtmiller>
Group Member
Thu 06 Oct 2016 02:38:16 PM UTC, comment #2: 

Oh, sorry, forget the previous ... seemingly Octave-4.2 already behaves like Matlab in this, dropping the '[]' in concatenation with cell arrays of any dimension.

Olaf Till <i7tiol>
Group Member
Thu 06 Oct 2016 02:33:39 PM UTC, comment #1: 

What does Matlab say to:

[[]; ['xxx', {1, 2}]]


(and, for completeness, to:

[[]; {1, 2}]

and

[[]; {1; 2}]

)?

Olaf Till <i7tiol>
Group Member
Thu 06 Oct 2016 01:47:43 PM UTC, original submission:  

Octave:

out=[];
zz = num2cell([1 2]);
out = [out; 'xxx' zz]

error: vertical dimensions mismatch (1x1 vs 1x3)

Matlab:


out = [out; 'arg' zz]


out =

    'arg'    [1]    [2]

Steven Weinberg <wstevena>

 

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

Attach Files:
   
   
Comment:
   

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-06 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code