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 Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by