Dynamic addressing of files and folders for inputting data
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everyone,
Is it possible to create a dynamic path address in MATLAB for calling files and folders? For example we have unknown number of files where each one includes also unknown number of excel files. How is it possible to call these files and folders for a kind of processing? I need a way that somehow MATLAB recognizes the number of folders by itself and then call the files inside each folder for processing.
Many thanks, Sam
댓글 수: 0
답변 (2개)
Arturo Moncada-Torres
2013년 12월 2일
excelFiles = dir(fullfile(pathToDirectory,'*.xls*'));
Then, you can access the file names as
excelFiles(:).names
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!