Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to perform multiple conditions manipulation

조회 수: 3 (최근 30일)
Tino
Tino 2020년 10월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi
I have a list of numbers called true_changes = 26 to 711
I am trying to count the numbers that satisfy the following conditions below as false positives (FP)
FP = find(true_changes < 29 && true_changes > 62 && true_changes < 121 && true_changes > 146 && true_changes < 173 && true_changes > 200 && true_changes < 261&& true_changes > 287 && true_changes < 461 && true_changes > 481 && true_changes < 662 && true_changes > 689);
I am getting this error "Operands to the || and && operators must be convertible to logical scalar values."
Please how do I go about this.
Thanks in advance
  댓글 수: 2
Sudhakar Shinde
Sudhakar Shinde 2020년 10월 9일
if conditions are logical, try using logical 'and' (&).
Tino
Tino 2020년 10월 9일
HI Shinde
it works. Thanks a lot

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by