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!