How to detect which rows are left in the matrix when the unique function is used to eliminate the repeated rows?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Grace
am 19 Aug. 2014
Beantwortet: Ahmet Cecen
am 19 Aug. 2014
Hi, I have
a= 1 1
1 2
1 2
1 2
1 1
1 2
b=unique(a,'rows');
>>b= 1 1
1 2
I want to know which rows are [1 1] and [ 1 2] in 'a'. Output can be 1 and 2, 1 and 3, or 5 and 6. As long as the first number represents the row of [1 1] and the second number for [1 2].
How am i going to do this? Thank you.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Detection 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!