How to select one specific file from a folder of same extension
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have six files under same folder. They are ACC_1.DAT, ACC_2.DAT, ACC_3.DAT and SN_1.DAT,SN_2.DAT,SN_3.DAT.
I want to develop a code where only SN_''.DAT are selected and stored in a location in matlab.
Please let me know, how can I do it?
0 个评论
采纳的回答
dpb
2016-11-2
d=dir('SN*.DAT'); % return list of files beginning w/ 'SN'
for i=1:length(d)
% do whatever with each file here...
...
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!