Hello, i have a datetime table A(2000,1) and a second one B(500,1). I want to search at table B if there is a date from table A or if there is the next day. If the condition is met i put in a third table with the name flag the value 1. I have tried this:
if A(i,1)==B(:,1) || A(i,1) +caldays(1)==B(:,1)
But i have the error 'Operands to the || and && operators must be convertible to logical scalar values'