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
bym 2011-4-10
unique(A,B)

1 个评论

That would only work if B just happened to be the character vector 'rows' ...

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Data Types 的更多信息

标签

提问:

2011-4-10

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by