How to write this Boolean operator?

I think you need some parentheses:

Indx = (Y .> -90) .& (Y.< 90);
2 Likes