Please read this http://www.mathworks.com/matlabcentral/answers/13205#answer_18099 so people can read your post.
Your code won't run if you use && with arrays. You have to use & to do an element-wide AND of corresponding elements. You're best off computing the result of the whole expression and saving it in one variable, then you'll typically want to put the resulting variable into any() or all() function.