フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to calculate frequency in 3 different text?

1 回表示 (過去 30 日間)
Dezdi
Dezdi 2018 年 12 月 11 日
閉鎖済み: Walter Roberson 2018 年 12 月 11 日
I could calculate frequency in one word but how to compare it to 3 text?
words is my text wchi was split in strt
[wordsu, idx, idxU] = unique( words ) ;
counts = accumarray( idxU, 1 ) ;
[~, S] = sort( counts, 'descend' ) ;
words_us = wordsu(S) ;
counts_s = counts(S)
result = [words_us, num2cell( counts_s )]
I mean the same word in the different text something like this
word text1 freq text2 freq text3 freq
and 5 6 5
the 4 6 3
..

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by