How do I grab the files names from a directory and store them in a matrix?
13 ビュー (過去 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 で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!