|
"konrad " <qnrad@wp.pl> wrote in message <i0vhjj$i0d$1@fred.mathworks.com>...
> Hi!
>
> I want do delete this rows where values are repeat.
> e.g.
>
> A=[
> 1,2
> 2,3
> 2,3
> 2,3
> 4,5
> 4,5
> 6,7
> ]
>
> exit should be:
>
> A=[
> 1,2
> 2,3
> 4,5
> 6,7
> ]
>
> i've read sth about "unique" but i dont know excatly how to use it
- - - - - - - - -
There are some questions that might be asked here about what you want. In your example you showed only consecutive repeats. Are those the only ones to be deleted? Using unique will remove all duplications. Are you satisfied with the sorted order produced by unique or would you like to restore the remaining rows to their original sequencing? If the latter, then when a row appears in duplicate which copy would you like removed? It would make a difference in the ordering.
Roger Stafford
|