Hi, I have two matrices(same number of columns), M1 and M2. M2 is a set of subset of rows in M1. Is there a function in matlab that I can directly get M1-M2={set of rows in M1 but not set of rows in M2}
Thanks.

 採用された回答

Sean de Wolski
Sean de Wolski 2013 年 1 月 8 日

0 投票

doc setxor
Use the 'rows' flag.

1 件のコメント

C Zeng
C Zeng 2013 年 1 月 8 日
Thanks, Sean. setxor(A,B,'rows')

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by