Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Noah Swiston
Noah Swiston el 26 de Mzo. de 2015
Respondida: Chad Greene el 26 de Mzo. de 2015
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.

Respuestas (1)

Chad Greene
Chad Greene el 26 de Mzo. de 2015
You can use textscan to import the text, then allwords to count words.

Community Treasure Hunt

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

Start Hunting!

Translated by