How to create a frequency table using a list of string values
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a list of 6,057,936 string values, some are unique, many are repeated multiple times. I need to create a table that lists each unique string (likely 1,000-2,000), as well as the number of times this string occurs. Could anyone help me to do this in Matlab?
Thank you,
Diana
0 个评论
采纳的回答
Star Strider
2018-12-6
I would use unique and accumarray. An example is given in the documentation section Count of Unique Elements (link).
更多回答(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!