compare arrays

2 visualizaciones (últimos 30 días)
Mate 2u
Mate 2u el 10 de Abr. de 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

Respuestas (2)

bym
bym el 10 de Abr. de 2011
  1 comentario
Walter Roberson
Walter Roberson el 10 de Abr. de 2011
That would only work if B just happened to be the character vector 'rows' ...

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 10 de Abr. de 2011
setdiff(A,B)
and
setdiff(B,A)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by