compare arrays

2 vues (au cours des 30 derniers jours)
Mate 2u
Mate 2u le 10 Avr 2011
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

Réponses (2)

bym
bym le 10 Avr 2011
  1 commentaire
Walter Roberson
Walter Roberson le 10 Avr 2011
That would only work if B just happened to be the character vector 'rows' ...

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 10 Avr 2011
setdiff(A,B)
and
setdiff(B,A)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by