Check if ID exist in second table
Mostrar comentarios más antiguos
I have 2 tables, now i want to check which numbers does not exist in the second table. So for example I have:
A = ["1","2","3"];
B = ["2","3"];
I want to check which number doesn't exist and keep that one.
So:
C = ["1"];
Respuestas (1)
A = ["1","2","3"];
B = ["2","3"];
C=A(~ismember(A,B))
1 comentario
Dion Theunissen
el 19 de Ag. de 2022
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!