compare arrays

조회 수: 15 (최근 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