Find common elements(?) in two arrays
8 ビュー (過去 30 日間)
古いコメントを表示
For example,
A=[2 2 2; 0 0 1; 1 2 3], B=[1 2 3; 2 2 2; 2 2 0]
then I want to find the point of common elements between A,B
answer of the point is: (i,j)=(1,2),(3,2)
how can I find points?
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 6 月 24 日
編集済み: Azzi Abdelmalek
2013 年 6 月 24 日
[ii,jj]=find(A==B)
% you can add
out=[ii jj]
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!