compare arrays
古いコメントを表示
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
回答 (2 件)
bym
2011 年 4 月 10 日
unique(A,B)
1 件のコメント
Walter Roberson
2011 年 4 月 10 日
That would only work if B just happened to be the character vector 'rows' ...
Walter Roberson
2011 年 4 月 10 日
setdiff(A,B)
and
setdiff(B,A)
カテゴリ
ヘルプ センター および File Exchange で Data Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!