Effacer les filtres
Effacer les filtres

Finding each element of one array in another array

4 vues (au cours des 30 derniers jours)
Mohit
Mohit le 17 Fév 2014
Commenté : Mohit le 17 Fév 2014
Hi,
I have two CELL arrays, A (row array with 100 rows and 1 column) and B (dimension - (3, 2)).
I need to create a (3,2) matrix C, each element of that matrix should give me row number of corressponding element of B in A. i.e. C(1,1) should give me row number of B(1,1) in A. If B(1,1) is missing then C(1,1) should be zero.
Thanks

Réponse acceptée

Jos (10584)
Jos (10584) le 17 Fév 2014
help ismember
Take a look at it's second output ...

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by