Using textscan how can I read in multiple text files in a folder and store each word on a vector?

2 views (last 30 days)
I have around 150 .txt files in a folder. Each text file contains paragraphs that talk about random topics. I need to obtain each word from each text file and save each word into a vector. The vector will be size 1x(# of words) [in other words a vertical vector].
Any help is greatly appreciated.
  1 Comment
Star Strider
Star Strider on 29 Nov 2014
Attach one of your files here. Click on ‘Edit’ to edit your Question, then use the ‘paperclip’ icon (to the left of the ‘Help’ button) and upload it. If we have an example of your text file, we can be more specific with our solutions.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!