필터 지우기
필터 지우기

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