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?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!