link multiple data files
이전 댓글 표시
Obviously new to MATLAB.. I have written a script & would like to run the script on multiple files without inputting a new file name each time. Thanks
답변 (2개)
Laura Proctor
2011년 5월 31일
If all of the files live in the same directory, you can use the LS command. See below for a couple examples:
a = ls;
a = ls('C:\class\*.m');
b = cellstr(a);
Then, run through your script with each file name contained in the cell array.
Walter Roberson
2011년 5월 31일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Variables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!