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

7 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by