Find common elements(?) in two arrays
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Azzi Abdelmalek
il 24 Giu 2013
Modificato: Azzi Abdelmalek
il 24 Giu 2013
[ii,jj]=find(A==B)
% you can add
out=[ii jj]
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!