remove repeated rows on matlab

124 Views Asked by At

I have a $n\times 2$ matrix as the following example

1   21
3   23
3   23
1   21
6   24
6   24
6   24

and I need obtain a new matrix (with 2 columns) with non reapeated rows, which in this example is

1   21
3   23
6   24

How I can do this on matlab?

1

There are 1 best solutions below

0
On

As said in the comments, the unique function in Matlab does exactly what you want to.