Info

この質問は閉じられています。 編集または回答するには再度開いてください。

comparing and deleting the elements in array

1 回表示 (過去 30 日間)
Bathrinath
Bathrinath 2013 年 12 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
x = [3 2 5 1 6 4; 4 1 3 5 2 6; 1 5 6 3 4 2; 1 5 6 2 3 4; 4 1 3 2 5 6 ]; y = [3 2 5; 4 1 3]; in this case 'y' has to be be compared with first three elements of 'x'. If first three elements of 'x' matches with 'y'. matched elements has to be be deleted. my result has to be x = [1 5 6 3 4 2; 1 5 6 2 3 4]

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 12 月 10 日
See ismember() with the 'rows' option.

Community Treasure Hunt

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

Start Hunting!

Translated by