How to calculate the number of appearance of each letter(A-Z ,a-z as well as '.' , ',' and ' ' ) in a text file in matlab?

后端 未结 0 409
夕颜
夕颜 2021-02-07 02:02

How can I go about doing this? So far I\'ve opened the file like this

fileID = fopen(\'hamlet.txt\'.\'r\');
[A,count] = fscanf(fileID, \'%s\');
fclose(fileID);


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题