Search specific numbers in column
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam
2017-11-27
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'!
采纳的回答
Adam
2017-11-27
badRowIdx = find( results( :,6 ) == 1 );
results( badRowIdx, : ) = [];
should remove these lines.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!