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

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

[Octave-bug-tracker] [bug #58728] Array row is left empty if it contains


From: Fernando
Subject: [Octave-bug-tracker] [bug #58728] Array row is left empty if it contains an empty struct array
Date: Wed, 8 Jul 2020 04:55:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?58728>

                 Summary: Array row is left empty if it contains an empty
struct array
                 Project: GNU Octave
            Submitted by: tutissanalio
            Submitted on: mié 08 jul 2020 08:55:24 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.90
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I get the following result in Octave (hg id ea5a632b2553):


>> x=struct("a",1)
x =
  scalar structure containing the fields:
    a = 1
>> x(1)=[]
x =
  1x0 struct array containing the fields:
    a
>> [2, x.a, 5]
ans = [](0x0)


However, the result of the last statement should have been:


>> [2, x.a, 5]
ans =
   2   5


which is what I get in Matlab 2020a.

This looks similar to bug #58695, but the bug stays after applying the
changeset for that bug.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58728>

_______________________________________________
  Mensaje enviado vía Savannah
  https://savannah.gnu.org/




reply via email to

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