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

조회 수: 1 (최근 30일)
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
Star Strider
Star Strider 2014년 11월 29일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by