How to equate data from two arrays?

Hi,
Say I had two arrays A and B which are not of same length. The array data in A is also present within the array data in B but B also has other data that are not relevant. I want to find the data of A in B and return the indexes of these data in B. Is there a way of extracting this?
Thanks

답변 (1개)

nl2605
nl2605 2014년 3월 20일

0 개 추천

'ismember' is what you need.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2014년 3월 20일

답변:

2014년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by