octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51086] matrix concatentation of struct with e


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51086] matrix concatentation of struct with empty cell arrays should work
Date: Mon, 22 May 2017 15:28:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?51086>

                 Summary: matrix concatentation of struct with empty cell
arrays should work
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Mon 22 May 2017 12:28:15 PM PDT
                Category: Interpreter
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51086>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]