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

 
 

bug #49283: Cell array: error compared to Matlab

Submitted by:  Steven Weinberg <wstevena>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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>
Project Administrator
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>
Project 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>
Project 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)
  •  

    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 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.5