How to equate data from two arrays?

1 次查看(过去 30 天)
Isuru
Isuru 2014-3-20
回答: nl2605 2014-3-20
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
'ismember' is what you need.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by