MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Light
on 7 Jun 2013

I have to choose higher row number (only one result)

A=[-1,1,1;0,-1,0;0,0,-1;1,0,0]; blnA = logical( A == -1 ); blnOut = find(all(ismember(A,[0,-1]),2));

blnOut =

2 3

*No products are associated with this question.*

## 2 Comments

## Azzi Abdelmalek (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/78357#comment_153620

What is the expected result?

## Light (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/78357#comment_153624

Expected result is 3. But if it is hard, just choose one result of them is enough.