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

8 vues (au cours des 30 derniers jours)
Leon
Leon le 10 Avr 2019
Commenté : Leon le 10 Avr 2019
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.

Réponse acceptée

madhan ravi
madhan ravi le 10 Avr 2019
  1 commentaire
Leon
Leon le 10 Avr 2019
Many thanks for the quick response! The solution is great!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by