How to find same contents in two array and print them in new array?
Ältere Kommentare anzeigen
Dear all, I am Beginner in MATLAB and I have this problem:
I have 2 array with one column and different rowes, for example:
A=[1;15;52;65;81] and B=[2;7;15;40;65;84;96],now how can I find same contents in 2 array and print them in new array?
Best regards
ESSI
Akzeptierte Antwort
Weitere Antworten (1)
Wayne King
am 15 Jun. 2013
A = [1;15;52;65;81];
B = [2;7;15;40;65;84;96];
C = intersect(A,B,'rows')
1 Kommentar
essi
am 15 Jun. 2013
Kategorien
Mehr zu Cell Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!