Borrar filtros
Borrar filtros

Search specific numbers in column

1 visualización (últimos 30 días)
Lucas MacClellan
Lucas MacClellan el 27 de Nov. de 2017
Comentada: Lucas MacClellan el 27 de Nov. de 2017
Hello everybody,
I have a Matrix of different measurements and in the 6th column it shows me erorrs. Every value in this column except of 0 shows me that the measurements are wrong. How can I clear out the lines with the errors?
Thanks
Lucas
  3 comentarios
Lucas MacClellan
Lucas MacClellan el 27 de Nov. de 2017
Hi Adam
Sorry maybe not good explained. The title of the column is "error". It shows me a lot of 0s which are showing me that the measurements of the lines are fine. Sometimes there comes a 1 which is saying to me, that this line is not useful.
Adam
Adam el 27 de Nov. de 2017
Ah, ok, yes, that makes sense. The original explanation is perfectly good enough now, I just got off on the wrong track with my interpretation of 'error'!

Iniciar sesión para comentar.

Respuesta aceptada

Adam
Adam el 27 de Nov. de 2017
badRowIdx = find( results( :,6 ) == 1 );
results( badRowIdx, : ) = [];
should remove these lines.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by