[Top][All Lists]

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

[Octave-bug-tracker] [bug #53175] Variable Editor: modifying element of

From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53175] Variable Editor: modifying element of cell array doesn't update cell array
Date: Fri, 16 Feb 2018 23:07:53 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0


                 Summary: Variable Editor: modifying element of cell array
doesn't update cell array
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Sat 17 Feb 2018 04:07:51 AM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



Try the following steps:

a = num2cell (rand (3));
a{2, 3} = rand (2);
openvar ('a')

Now, in the V.E., double-click on the 2,3 cell that indicates "[2x2 double]"
and the window a{2,3} appears.  Now go back to the command window and type

a{2,3} = 10

(Leave off the semicolon so the contents is printed.)  Look back at the V.E. 
Both the "a" and "a{2,3}" will have been updated properly; they both indicate
"10".  Now, go to the "a{2,3}" window and change the value of the 1,1 cell
from 10 to 500.  Look over in the "a" tab window and the cell at 2,3 still
indicates "10".  Go to the command line and look at "a":

>> a
a =
  [1,1] =  0.18730
  [2,1] =  0.076038
  [3,1] =  0.93187
  [1,2] =  0.36252
  [2,2] =  0.74575
  [3,2] =  0.21012
  [1,3] =  0.27078
  [2,3] =  500
  [3,3] =  0.33235

which indicates "500".  So the command is properly making its way back to the
core, but the V.E. "a" tab window isn't being updated (which probably isn't
noticeable when all it displays is "[2x2 double]").

Maybe it is as simply as calling "update ()", which is already done with a few
editing operations, but not all.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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