how can I deleted shared rows in two matrices?

1 回表示 (過去 30 日間)
JacobM
JacobM 2016 年 9 月 23 日
コメント済み: JacobM 2016 年 9 月 23 日
i have these two matrices,
X=[1 0 0;1 0 1];
Y=[1 1 1;2 0 1;1 0 1;3 1 1;1 0 0]
X always part of matrix Y meaning that all rows in x are present in matrix Y. I want a code that return a matrix Z that has all the rows in Y except those prsent in X, so the result in my example is expected to be
Z=[1 1 1;2 0 1;3 1 1]
any hint how can I do that?

採用された回答

Walter Roberson
Walter Roberson 2016 年 9 月 23 日
  1 件のコメント
JacobM
JacobM 2016 年 9 月 23 日
Great. works perfect, thanks Walter

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by