bugGNU Octave - Bugs: bug #46736, Resorting of cell delivers...

 
 

bug #46736: Resorting of cell delivers incorrect result when stored in variable

Submitted by:  None
Submitted on:  Mon 21 Dec 2015 10:05:43 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: InvalidAssigned to: Kai Torben Ohlhus <siko1056>
Originator Name: Andreas BeschornerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 21 Dec 2015 12:18:34 PM UTC, comment #1:

For cell indexing, I like to point to the manual for a few examples:

https://www.gnu.org/software/octave/doc/interpreter/Indexing-Cell-Arrays.html#Indexing-Cell-Arrays

As you have seen in your code example ll{[2,1]} produces two "ans" variables. It is not a single result! Using ans afterwards will only take the last of the rows. To capture all the results from the cell indexing, try

this produces a vector with all results. But, I guess, the more desired outcome is

HTH, Kai

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Mon 21 Dec 2015 10:05:43 AM UTC, original submission:

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:

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Dec 2015 12:20:30 PM UTCsiko1056Assigned toNone=>siko1056
    Mon 21 Dec 2015 12:18:34 PM UTCsiko1056Item GroupIncorrect Result=>Other
      StatusNone=>Invalid
      Open/ClosedOpen=>Closed
      Operating SystemMicrosoft Windows=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1