How to create a frequency table using a list of string values
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Diana Krupnik
el 6 de Dic. de 2018
Comentada: Star Strider
el 9 de Dic. de 2018
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 comentarios
Respuesta aceptada
Star Strider
el 6 de Dic. de 2018
I would use unique and accumarray. An example is given in the documentation section Count of Unique Elements (link).
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!