This should work:

f = find( (x .>= 0.4) & (x .< 0.8) )

When comparing element of vectors you have to use the . notation, like in 
matlab for multiplication, but the & doesn't use it for some reason.

It seems also that & has the priority over .> so it doesn't work without 
parenthesis.

Reply via email to