Frequencies of special words in a text

1 回表示 (過去 30 日間)
Jonquil
Jonquil 2019 年 2 月 17 日
回答済み: Ashutosh Thakur 2022 年 6 月 29 日
Hi. I need a matlab code that reads a text file like 'test.txt' and then counts the number of occurences of special words ( like 'good' or 'computer') that I determine.
Can anyone help me? I don't want to calculate the frequency of every word in the text, just the words that I determine in the code.

回答 (1 件)

Ashutosh Thakur
Ashutosh Thakur 2022 年 6 月 29 日

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by