Delete rows from matrix according to another matrix?

A= 1 2 3; 4 5 6; 7 8 9; 1 3 4; 5 6 7
B= 5 6 7; 1 2 3
A and B are given,how to delete corresponding rows from matrix A according to matrix B? Try not to use loops. Thanks.

 採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 9 月 27 日

0 投票

setdiff(A,B,'rows')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2017 年 9 月 27 日

コメント済み:

2017 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by