How to apply for loop for specific files of each subfolder and record maximum value in matrix form?

1 次查看(过去 30 天)
I have folder name "m2ftaci_wns_BFGS".The folder have multiple subfolders,m2ftaci_wns_BFGS_0.05, m2ftaci_wns_BFGS_0.10 etc.
I would like to go each subfolders (for e.g. m2ftaci_wns_BFGS_0.05) and under that subfolder there are hundreds of files.
I would like to run for loop for two files at same time (one col-rot-hist11.out and beam-rot-hist23.out) and record maximum value of two files and do for all the files with same name but different numbers at last (e.g. 12 and 24, 13 and 25 so on). I did for loop for subfolders but when i go to each subfolders how do I use for loop for two files name at a time and also other same file name but different two numbers at last. Any idea is appreciated.

回答(1 个)

madhan ravi
madhan ravi 2018-10-20

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by