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

조회 수: 1 (최근 30일)
Maria Elena Lazar
Maria Elena Lazar 2021년 1월 18일
댓글: Maria Elena Lazar 2021년 1월 18일
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