Prev: New generator
Next: more than 10 seconds on the scope??
From: Nodal Dof on 5 Mar 2010 13:39 Is there a way to remove only consecutive repetitions in an array? The UNIQUE function removes every other repietition irrespective of ther order For example I have a matrix as follows 1 6 2 6 3 5 4 20 5 18 6 7 8 5 9 5 10 5 11 20 12 6 the matirx after suppression of consecutively repeated elements should be 1 6 3 5 4 20 5 18 6 7 8 5 11 20 12 6 In the consecutively repeates values i just need the first occurance (or any one of them). Is there a way to do this? Any help is appreciated. Thanks, Nodal.
|
Pages: 1 Prev: New generator Next: more than 10 seconds on the scope?? |