这行代码中的错误是什么:
if BB(i) <= max([BB(i-4):BB(i)]) && BB(i) <= max([BB(i-7):BB(i)])
我收到以下错误消息:
??? Operands to the || and && operators must be convertible to logical scalar values.
Error in ==> if BB(i) <= max([BB(i-4):BB(i)]) && BB(i) <= max([BB(i-7):BB(i)])