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

Add a New Comment Rich Markup
   

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

 

(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

 

CC list is empty

 

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.

 

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.13-58d6.
Corresponding source code