How to get the numbers that do not overlap with another matrix?

조회 수: 8 (최근 30일)
Leon
Leon 2019년 4월 10일
댓글: Leon 2019년 4월 10일
Imagine, I have a matrix A = [1, 2, 5, 7, 9]; and B = [1,3,5];
How do I find all numbers in Matraix A that do not already overlapping with B? In this case, 1 and 5 in A have overlapping numbers in B, so 2, 7, 9 would be my answer.
Thank you.

채택된 답변

madhan ravi
madhan ravi 2019년 4월 10일
  댓글 수: 1
Leon
Leon 2019년 4월 10일
Many thanks for the quick response! The solution is great!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by