delete row if in column 1 nad 2 are the same values
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
UWM
am 30 Sep. 2019
Kommentiert: UWM
am 30 Sep. 2019
Hello. I have e.g. 3 x 5 matrix.
I want to delete all rows which have the same elements in column 1 and 2.
For instance: a = [2,7,1; 3,4,2; 3,7,5; 2,2,4; 6,6,9] => [2,7,1; 3,4,2; 3,7,5]
In this case, as in row 4 was repeated 2 in column 1 nad 2 and in column 5 was repeated 6 in column 1 nad 2, both rows are removed.
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Software Development Tools 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!