compare arrays
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (2)
bym
on 10 Apr 2011
unique(A,B)
1 Comment
Walter Roberson
on 10 Apr 2011
That would only work if B just happened to be the character vector 'rows' ...
See Also
Categories
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!