|
From: | Nicholas Jankowski |
Subject: | Re: Using the unique command without sorting the values and getting the rows |
Date: | Wed, 15 Jun 2016 09:54:25 -0400 |
Greetings
I'm trying to get all the rows based on the unique values found in the second column. see example below
The index of the rows that I would keep would be row 1,2,3,5,7 (in that order)
I was thinking of using unique([5 5 3 4],'stable') (the 'stable' option seems to keep the
index value order without sorting), but octave 4 doesn't have the stable option how can a work around this
[Prev in Thread] | Current Thread | [Next in Thread] |