Delete Rows with a specific condition
Afficher commentaires plus anciens
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
Réponse acceptée
Plus de réponses (1)
Andrei Bobrov
le 2 Oct 2013
Modifié(e) : Andrei Bobrov
le 2 Oct 2013
out = x(all(x(:,3:end),2),:);
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!