Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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.

Réponses (1)

madhan ravi
madhan ravi le 20 Oct 2018

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by