Choose rows that the first column is larger than the second column
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 3 Aug. 2020
Beantwortet: Walter Roberson
am 3 Aug. 2020
I have an n*2 matrix A. I only want to have rows that the first column is larger than the second column. What is a simple way to do this?
For example, suppose I have
A = [ 2 1;3 4]
I just want to keep the first row.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!