How to equate data from two arrays?

2 Ansichten (letzte 30 Tage)
Isuru
Isuru am 20 Mär. 2014
Beantwortet: nl2605 am 20 Mär. 2014
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

Antworten (1)

nl2605
nl2605 am 20 Mär. 2014
'ismember' is what you need.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by