How do I grab the files names from a directory and store them in a matrix?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi Guys,
I have a bunch of file names in a directory...call it c:\output
They are formatted YYYYMMDD. A sample one is 19870824.csv. There are about 4000 different files. How do I grab the file names and store them in a matrix?
-Larry G.
댓글 수: 0
답변 (2개)
Fangjun Jiang
2011년 11월 4일
Files=dir('c:\output]*.csv');
Files.name
Files is a structure array containing the file name and other info.
댓글 수: 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!