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

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

[Octave-bug-tracker] [bug #46736] Resorting of cell delivers incorrect r


From: anonymous
Subject: [Octave-bug-tracker] [bug #46736] Resorting of cell delivers incorrect result when stored in variable
Date: Mon, 21 Dec 2015 10:05:45 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0

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

                 Summary: Resorting of cell delivers incorrect result when
stored in variable
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mo 21 Dez 2015 10:05:43 UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Andreas Beschorner
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

When using the result of a resorted cell as a variable, only the very first
element is copied. How to reproduce in the GUI; "ans" and "lk" (see below)
should be identical:



>> m
m =

   1   2   3   4   5   6   7   8   9   0

>> n
n =

    3    8    1    2    9   10    6    5    7    4

>> ll={m, n}
ll =
{
  [1,1] =

     1   2   3   4   5   6   7   8   9   0

  [1,2] =

      3    8    1    2    9   10    6    5    7    4

}
>> ll{[2,1]}
ans =

    3    8    1    2    9   10    6    5    7    4

ans =

   1   2   3   4   5   6   7   8   9   0

>> lk=ll{[2,1]}
lk =

    3    8    1    2    9   10    6    5    7    4

>>







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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