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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Star Strider
Star Strider il 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.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by