find member of element

 Accepted Answer

[~,out] = ismember(right,b)

3 Comments

xxx
xxx on 16 Nov 2013
thanksssssssssssssssssssssssssssssssssssssssss
please give small numeric example of arrays right, b, left, a

Sign in to comment.

More Answers (1)

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.

Asked:

xxx
on 16 Nov 2013

Edited:

xxx
on 18 Nov 2013

Community Treasure Hunt

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

Start Hunting!