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

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

[Octave-bug-tracker] [bug #55668] Variable Editor cannot delete columns


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #55668] Variable Editor cannot delete columns in a row array
Date: Thu, 7 Feb 2019 08:56:02 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

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

                 Summary: Variable Editor cannot delete columns in a row array
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Thu 07 Feb 2019 02:56:01 PM CET
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.0.91
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

(Related to bug #55666)
Steps to reproduce:

>> tst = repmat (struct ("a", 1, "b", rand(3)), 3, 1)
    tst =
      3x1 struct array containing the fields:
        a
        b
>> openvar ('tst')
## Now right-click row #2 in the left "header", select "Delete rows"

## ==> popup  "failed to evaluate expression : 'tst(2:2, :) = []'

>> error: A(..,I,..) = []: index out of bounds: value 2 out of bound 1


I think the variable editor is confused because it shows a row array as a
column and then gets lost in its own transposed display.

Note that Matlab (up until r2018b, I still want to check it in r2019a
prerelease) does exactly the same as regards displaying the row struct array,
except it doesn't error when deleting a "row".

One can argue about whether "Delete rows" (Octave) and "Delete row" (Matlab)
in this case are accurate as in reality the row structure array is shown as a
column and deleting one array entry is essentially deleting a column of a 1xN
array rather than a row. In the worst case it could be called "bug for bug
compatibility" :-)






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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