Identifying missing values in matrices

2 次查看(过去 30 天)
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

采纳的回答

David Fletcher
David Fletcher 2021-4-6
try
idx=~ismember(B,A)
C=A(idx)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by