how to delete repeated coordinates

조회 수: 1 (최근 30일)
muhammad ismat
muhammad ismat 2015년 6월 14일
답변: dpb 2015년 6월 14일
if i have d=[ 3 4; 4 3;7 6 ;6 7]
so i want this result d=[ 3 4; 7 6]

답변 (1개)

dpb
dpb 2015년 6월 14일
Presuming values are significant but order isn't, simplest that comes to mind is
>> unique(sort(d,2),'rows')
ans =
3 4
6 7
>>

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by