Operands to the || and && operators must be convertible to logical scalar values

조회 수: 2 (최근 30일)
stefano Chiappini
stefano Chiappini 2021년 4월 28일
댓글: Image Analyst 2021년 4월 28일
Operands to the logical and (&&) and or (||) operators must be convertible to logical scalar values.
Error in tree_sets>define_base_forb (line 103)
while k <= 5 && Wb > 0.3*Wt
Error in tree_sets (line 69)
[Base,Forb,cover] = define_base_forb(P,cover,aux,inputs);
Error in treeqsm (line 284)
[cover1,Base,Forb] = tree_sets(P,cover1,Inputs);
Hi everybody, i have met the following problem when i used the TreeQSM code.
How can this problem to solved?
Thank you so much
  댓글 수: 1
Image Analyst
Image Analyst 2021년 4월 28일
Just before line 103, put this and look in the command window and tell us what it says
k
whos k
Wb
whos Wb
Wt
whos Wt

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

답변 (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