Filter löschen
Filter löschen

how to delete repeated coordinates

1 Ansicht (letzte 30 Tage)
muhammad ismat
muhammad ismat am 14 Jun. 2015
Beantwortet: dpb am 14 Jun. 2015
if i have d=[ 3 4; 4 3;7 6 ;6 7]
so i want this result d=[ 3 4; 7 6]

Antworten (1)

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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by