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!