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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by