compare arrays

2 次查看(过去 30 天)
Mate 2u
Mate 2u 2011-4-10
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
  1 个评论
Walter Roberson
Walter Roberson 2011-4-10
That would only work if B just happened to be the character vector 'rows' ...

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2011-4-10
setdiff(A,B)
and
setdiff(B,A)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by