How do I run my script on multiple files?
显示 更早的评论
I have been given about one thousand .txt files that I need to open into Matlab and run a script on the extracted information from them. Currently I am changing the file path individually each time. Is there any way to set a loop to open each .txt file and perfom the script on them? This would save a lot of time. Currently the lines I am using to open the file goes like this: filename = 'C:\Users\.... formatSpec = '%f%*s%*s%*s%f%f%f%*s%*[^\n\r]'; fileID = fopen(filename,'r');
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!