I am trying to use find in between two points, which is giving me error.
When I use
index = find(x>4)
it gives me all 100 values which are greater than x>4
if I use
index = find((x>4) && (x<6))
It gives me error: Operands to the || and && operators must be convertible to logical scalar
I wanted to know how I can find the values by giving two conditions.