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!