delete matrix row with certain value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Patrick
am 11 Nov. 2014
Kommentiert: Patrick
am 11 Nov. 2014
how can i remove the rows with a certain number say, 2?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Adam
am 11 Nov. 2014
A = [2 3 4 5; 6 7 8 9; 2 1 1 1; 3 3 3 3];
A( any(A == 2, 2 ),: ) = [];
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!