how to remove certain elements in 2D array?
4 ビュー (過去 30 日間)
古いコメントを表示
LAKSHMANAN ADAIKKAPPAN
2016 年 2 月 18 日
編集済み: LAKSHMANAN ADAIKKAPPAN
2016 年 2 月 18 日
i have a variable 'c' in size of 4x2 c=[4 2; 5 3; 3 6; 4 7;] and another variable 'd' in size of 2x2 d=[4 2; 3 6;]. Compare two variables( c and d)and remove elements of 'd'variable in Variable 'c' and how get final output F=[5 3; 4 7;]?
0 件のコメント
採用された回答
Andrei Bobrov
2016 年 2 月 18 日
編集済み: Andrei Bobrov
2016 年 2 月 18 日
F = setdiff (c, d, 'rows')
1 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!