Delete entire row of an array
Ältere Kommentare anzeigen
How can I remove the entire row if either value is less than 5:
Coord =
2 3
2 39
1 88
9 74
10 93
16 28
16 50
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 13 Jan. 2016
Alternatively:
Coord = Coord(~sum(Coord<5,2),:)
Coord =
9 74
10 93
16 28
16 50
Kategorien
Mehr zu Operators and Elementary Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!