Delete Rows with a specific condition
Ältere Kommentare anzeigen
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 2 Okt. 2013
Bearbeitet: Andrei Bobrov
am 2 Okt. 2013
out = x(all(x(:,3:end),2),:);
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!