compare arrays
Mostra commenti meno recenti
I have two arrays. I want to compare array A with B to see which element is in A and not in B and vice versa. Please help
Risposte (2)
bym
il 10 Apr 2011
unique(A,B)
1 Commento
Walter Roberson
il 10 Apr 2011
That would only work if B just happened to be the character vector 'rows' ...
Walter Roberson
il 10 Apr 2011
setdiff(A,B)
and
setdiff(B,A)
Categorie
Scopri di più su Data Types in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!