link multiple data files
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (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.
参考
カテゴリ
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!