creating a vocab list
3 次查看(过去 30 天)
显示 更早的评论
Hi, I have a cell array (P) of size 5000x1. Each element of this cell array is another cell array of variable size which contains some words. The task is to find the words that are present in more than a certain number of elements (rows) of the array P. Thanks
1 个评论
John D'Errico
2017-10-28
What have you tried? If nothing, then why not? If you want help, show what you have done. Otherwise this becomes merely a doit4me.
采纳的回答
Walter Roberson
2017-10-29
Hint: You are not told which orientation the individual cell arrays are. You need to make them all the same orientation before you can get much further.
bar = cellfun(@(C) C(:), foo, 'uniform', 0);
Then you can pull all of the contents into a single array:
vertcat(bar{:})
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!