bugGNU Octave - Bugs: bug #63453, output dimension of cell2mat with...


bug #63453: output dimension of cell2mat with empty inputs

Submitter:  Guillaume <gyom>
Submitted:  Thu 01 Dec 2022 11:37:17 AM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * stable Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Thu 01 Dec 2022 02:18:38 PM UTC, comment #1: 

Since Matlab doesn't display the dimensions of empty output, here again to make the difference clearer.
In Octave 7.3.0:

>> size (cell2mat (cell (0, 1)))
ans =

   0   1

In Matlab R2022a:

>> size (cell2mat (cell (0, 1)))

ans =

     0     0

Markus M├╝tzel <mmuetzel>
Project Member
Thu 01 Dec 2022 11:37:17 AM UTC, original submission:  

I noticed a difference between Matlab and Octave whereby:

octave> cell2mat (cell (0, 1))
ans = [](0x1)

>> cell2mat (cell (0 ,1))
ans =

It seems this difference was introduced in bug #51448. I would vote for the corresponding change to be reverted for better Matlab compatibility.

Guillaume <gyom>


(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by gyom (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 project members can vote.





    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-01 mmuetzel StatusNone Confirmed

    Back to the top

    Powered by Savane 3.10