Creating a structure array containing names of external files
조회 수: 1 (최근 30일)
이전 댓글 표시
Good day , how can I create a function that will receive a structure array containing the names of the external files that will be read in separate field ?
댓글 수: 2
채택된 답변
Bob Thompson
2019년 5월 1일
files = dir(path);
This will return a structure called 'files' which contains the names of all files in the path location (and other information). To call the specific file you want just do files(index).name.
댓글 수: 0
추가 답변 (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!