work with text files in multiple folders

조회 수: 1 (최근 30일)
Isma_gp
Isma_gp 2017년 2월 22일
댓글: KSSV 2017년 2월 22일
Hi, I have several *.txt files in different folders located in dir (Z:\Archives). The different folders are named run1_1, run1_2, run3_1,...etc. On each folder we will find several *.txt files. I would like to load the data from those txt files on an organized structure: File1.txt - which contains all the File1s from the different folders File2.txt - which contains all the File2s from the different folders
Can you help with that? Thanks

답변 (1개)

KSSV
KSSV 2017년 2월 22일
This question is asked many times...on googling you will get many answers for the same.
You may check below one for one of useful answer.
  댓글 수: 2
Isma_gp
Isma_gp 2017년 2월 22일
Thanks, but I don't want to list the names of the folders, but load the files into structures for each file name which you find on each folder.
KSSV
KSSV 2017년 2월 22일
Once you have the file names and folder names, you can load your data..you want..

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by