Search specific numbers in column
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lucas MacClellan
am 27 Nov. 2017
Kommentiert: Lucas MacClellan
am 27 Nov. 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 Kommentare
Adam
am 27 Nov. 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'!
Akzeptierte Antwort
Adam
am 27 Nov. 2017
badRowIdx = find( results( :,6 ) == 1 );
results( badRowIdx, : ) = [];
should remove these lines.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!