フィルターのクリア

Extracting text from .txt file and place into a string.

1 回表示 (過去 30 日間)
Noah Swiston
Noah Swiston 2015 年 3 月 26 日
回答済み: Chad Greene 2015 年 3 月 26 日
I have a number of txt files which contain famous speeches. How do I open the file, and extract the entire speech and place it into a string? After that I wish to do a separate count for all words in the speech.

回答 (1 件)

Chad Greene
Chad Greene 2015 年 3 月 26 日
You can use textscan to import the text, then allwords to count words.

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by