Finding each element of one array in another array

3 ビュー (過去 30 日間)
Mohit
Mohit 2014 年 2 月 17 日
コメント済み: Mohit 2014 年 2 月 17 日
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

採用された回答

Jos (10584)
Jos (10584) 2014 年 2 月 17 日
help ismember
Take a look at it's second output ...

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by