Delete Rows with a specific condition
Mostrar comentarios más antiguos
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 2 de Oct. de 2013
Editada: Andrei Bobrov
el 2 de Oct. de 2013
out = x(all(x(:,3:end),2),:);
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!