Remove rows/columns with same elements
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Asad Gulib
am 17 Nov. 2020
Kommentiert: Asad Gulib
am 17 Nov. 2020
Hi,
Is there a easy way to remove rows with same elements in a 2D matrix. For example, i have a matrix A = [1 2; 2 3; 1 2; 3 4; 2 1]
The 'unique' command doesn't help as it will give you the output [1 2; 2 3; 3 4; 2 1]. It's not deleting the last row [2 1] which has the same element as first row.
But i want the output like this [1 2; 2 3; 3 4].
Thanks,
Asad
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Interpolation 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!