multiple folder paths into a loop
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Binu
el 17 de Feb. de 2020
Comentada: Binu
el 18 de Feb. de 2020
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 comentarios
Respuesta aceptada
Joseph Cheng
el 18 de Feb. de 2020
Editada: Joseph Cheng
el 18 de Feb. de 2020
[a]=dir('B*\sss\ttt\*.txt')
you can continue the search by using the wildcard + extension
Más respuestas (0)
Ver también
Categorías
Más información sobre Entering Commands en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!