Delete Rows with a specific condition
Mostra commenti meno recenti
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
Risposta accettata
Più risposte (1)
Andrei Bobrov
il 2 Ott 2013
Modificato: Andrei Bobrov
il 2 Ott 2013
out = x(all(x(:,3:end),2),:);
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!