find member of element

1 view (last 30 days)
xxx
xxx on 16 Nov 2013
Edited: xxx on 18 Nov 2013
b=[8 6 9]

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 16 Nov 2013
[~,out] = ismember(right,b)
  3 Comments
Andrei Bobrov
Andrei Bobrov on 16 Nov 2013
please give small numeric example of arrays right, b, left, a

Sign in to comment.

More Answers (1)

Roger Stafford
Roger Stafford on 16 Nov 2013
f = find(ismember(b,right));
  2 Comments
xxx
xxx on 16 Nov 2013
Edited: xxx on 16 Nov 2013
but result show 1 2 6 my result should be 2 6 1
xxx
xxx on 16 Nov 2013
i need to find them for their indexes

Sign in to comment.

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!