delete matrix row with certain value
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can i remove the rows with a certain number say, 2?
0 commentaires
Réponse acceptée
Plus de réponses (1)
Adam
le 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 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!