bugGNU Octave - Bugs: bug #51086, matrix concatentation of struct...

 
 

bug #51086: matrix concatentation of struct with empty cell arrays should work

Submitter:  Mike Miller <mtmiller>
Submitted:  Mon 22 May 2017 07:28:15 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 22 May 2017 07:28:15 PM UTC, original submission:  

According to a test done on the maintainers mailing list, in Matlab 2017a:


>> [struct(), {}]

ans =

  struct with no fields.


When a struct is the leading element in a row vector concatenation, and the remaining elements are all empty cell arrays, they should be ignored, the same as if they were empty matrices.

For example, this works in Octave:


>> [struct(), [], [], []]
ans =

  scalar structure containing the fields:



If the trailing values are empty cell arrays, they should collapse the same way and the result should be just the scalar struct or struct array.

Mike Miller <mtmiller>
Group Member

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2019-02-26 mtmiller Carbon-CopyRemoved 80942 -

Back to the top

Powered by Savane 3.16.
Corresponding source code