How do I open a text file and extract the contents as a string?

2 views (last 30 days)
Im looking to open a text file and extract the contents(in this case a famous speech) into a string of data so the allwords.m file can be used. Any ideas?

Answers (1)

Adam
Adam on 26 Mar 2015
Edited: Adam on 26 Mar 2015
doc textscan

Categories

Find more on Text Data Preparation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!