Delete a row if it contains a specific number of zeros
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there,
I have a 1000x12 matrix and i want to eleminate all the rows, where the number of zeros is larger than 3.
Is there a simple trick to do this?
Best regards
0 commentaires
Réponses (1)
Bhuvnesh Singh
le 26 Fév 2018
Try to run the attached code to delete the rows with zeros greater than 2.
0 commentaires
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!