30 most frequent words with more than 4 letters in a text file

1 次查看(过去 30 天)
I have to resolve this problem:
Read a large existing text file (you can create one by copying a large text from the browser into notepad and saving with extension .txt). Find the 30 most frequent words with more then 4 letters. (Filter out non-letters)
i've only did this:
clear all; close all; clc;
fid=fopen('text.txt');
text=fread(fid,1000000,'uint8=>char')';
fclose(fid);
How could I finish the problem?

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-1-18

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by