Remove duplicated rows in a matrix

Hi
I have some (x,y) points and it consists of some duplicated values, for example (x3,y3) is duplicated 3 times in data. How I can find/remove this point and other duplicated points in all my data?
Thanks.
Mani

답변 (1개)

Michael Haderlein
Michael Haderlein 2014년 9월 25일
편집: Michael Haderlein 2014년 9월 25일

0 개 추천

unique(array,'rows') can do the job:
>> A=[1 2;3 4;5 6;1 2]
A =
1 2
3 4
5 6
1 2
>> unique(A,'rows')
ans =
1 2
3 4
5 6

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2014년 9월 25일

편집:

2014년 9월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by