Comparision of two different cell arrays and save in two different matrices?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi i have two cell matrices with sring values as below
a = {'hi';'hello';'hey';'oh';'hello'};
b = {'hi';'hello'};
Comman strigns in one matrix and remaining in another matrix.i need the output as
result1 = {'hi';'hello';'hello'}
result2={'hey';'oh'}
Please let me know if any one knows, Thanks in advance
1 件のコメント
madhan ravi
2019 年 3 月 13 日
Your acceptance rate seems to be too low , makes people not to answer the question.
採用された回答
madhan ravi
2019 年 3 月 13 日
編集済み: madhan ravi
2019 年 3 月 13 日
result1=a(ismember(a,b)).'
result2=a(~ismember(a,b)).'
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!