Identifying missing values in matrices

1 visualizzazione (ultimi 30 giorni)
I have two matrices. A=429x1 and B=412x1
Every number in the B matrix exists in A. However I want to find out which numbers are missing in B. Like
C=17x1

Risposta accettata

David Fletcher
David Fletcher il 6 Apr 2021
try
idx=~ismember(B,A)
C=A(idx)

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by