multiple folder paths into a loop
显示 更早的评论
Hello friends,
In the attached Test.zip floder, there are txt files at each end folder ( \B1\sss\ttt ). There are only 4 files (B1-B4) attached here, but I have 32 of those. I need to do a same operation to each txt file at all 4 main folders. How can I include those folder paths into a loop to do the same operation to each txt file.
Hope you can help with this.
Thank you
4 个评论
Walter Roberson
2020-2-17
dir('B*\sss\ttt')
and use the folder property of the entry to find out which directory it came from.
Binu
2020-2-18
Hyeokjin Jho
2020-2-18
dir('B*\sss\ttt\*.txt')
Binu
2020-2-18
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
