find common elements from cell array and remove it
7 ビュー (過去 30 日間)
古いコメントを表示
I have two cell arrays A and B
A={1,2,3,4}
B={2,3}
remove elements from A that is present in cell array B
and answer should be
{1,4}
0 件のコメント
採用された回答
Andrei Bobrov
2019 年 12 月 30 日
out = A(~ismember([A{:}],[B{:}]));
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!