Delete a row if it contains a specific number of zeros

1 visualización (últimos 30 días)
Arda Büyükasik
Arda Büyükasik el 21 de Feb. de 2018
Respondida: Bhuvnesh Singh el 26 de Feb. de 2018
Hi there,
I have a 1000x12 matrix and i want to eleminate all the rows, where the number of zeros is larger than 3.
Is there a simple trick to do this?
Best regards

Respuestas (1)

Bhuvnesh Singh
Bhuvnesh Singh el 26 de Feb. de 2018
Try to run the attached code to delete the rows with zeros greater than 2.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by