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 日

1 投票

Afiltered = setdiff(A, B)

1 件のコメント

Priyadharshini Kannan
Priyadharshini Kannan 2018 年 2 月 20 日
Thanks for the prompt response, Guillaume.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by