Frequencies of special words in a text

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by