Comparing elements of two matrices

1 次查看(过去 30 天)
Hello Everyone, I have 2 matrices with dimensions A = 707*1 and B= 404*1, where B is a subset of A. I would like to compare the two matrices, and delete the common elements of A and B and create a 3rd matrix with unique elements of A. Could someone help me in this regard?
Thanks

采纳的回答

Guillaume
Guillaume 2018-2-20
Afiltered = setdiff(A, B)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by