How do I remove rows in a matrix, that have zero in them?
Afficher commentaires plus anciens
My matrix is: 20 0 0 15 1 3 35 0 0 40 1 0 35 0 0 20 0 0 55 1 3
How do I remove the rows containing 0?
Réponses (1)
Azzi Abdelmalek
le 15 Jan 2015
Modifié(e) : Azzi Abdelmalek
le 15 Jan 2015
A(any(A==0,2),:)=[]
1 commentaire
Mathilde Engell
le 15 Jan 2015
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!