필터 지우기
필터 지우기

Search specific numbers in column

조회 수: 1 (최근 30일)
Lucas MacClellan
Lucas MacClellan 2017년 11월 27일
댓글: Lucas MacClellan 2017년 11월 27일
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
Lucas MacClellan
Lucas MacClellan 2017년 11월 27일
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 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
Adam 2017년 11월 27일
badRowIdx = find( results( :,6 ) == 1 );
results( badRowIdx, : ) = [];
should remove these lines.
  댓글 수: 1
Lucas MacClellan
Lucas MacClellan 2017년 11월 27일
Thank you! Thats what I wanted

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by