how could I calculate frequency in 3 different text?

3 visualizaciones (últimos 30 días)
Dezdi
Dezdi el 11 de Dic. de 2018
Comentada: Star Strider el 11 de Dic. de 2018
Could you help me how to calculate frequency in the text
I could do it if I have 1 text
words is my first tex name which split
[w_u, idx, idxU]=unique(words) ;
counts=accumarray(idxU, 1) ;
[~, idxS]=sort(counts, 'descend') ;
words_us = words_u(idxS) ;
counts_s =counts(idxS) ;
result=[words_us, num2cell(counts_s)]
but if I have 3 different text how to compair and find the same words like
word text1 text2 text3
and 5 6 7
the 5 4 5
or 4 3 5
...

Respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by