How to create a frequency table using a list of string values
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Diana Krupnik
am 6 Dez. 2018
Kommentiert: Star Strider
am 9 Dez. 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 Kommentare
Akzeptierte Antwort
Star Strider
am 6 Dez. 2018
I would use unique and accumarray. An example is given in the documentation section Count of Unique Elements (link).
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!