how to delete repeated coordinates
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
if i have d=[ 3 4; 4 3;7 6 ;6 7]
so i want this result d=[ 3 4; 7 6]
0 commentaires
Réponses (1)
dpb
le 14 Juin 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
>>
0 commentaires
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!