Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to write a program that will open directories inside of a larger directory and execute a script inside each?

1 回表示 (過去 30 日間)
Martin Kay
Martin Kay 2016 年 6 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a large data set to work with and I am hoping to write a code that will automate the process of changing directories. The directory which contains the subdirectories with the data files is
Users>user>LaserStripping>2016_05_03>LaserStripping-05-03
Inside of the LaserStripping-05-03 directory are ~1000 other directories which contain the data I need to process. So once I am in the directory
Users>user>LaserStripping>2016_05_03>LaserStripping-05-03>2016.05.02_20:34:08
for example, I can then execute my script from the command line. My question is, how do I write a code that will go into a directory, execute a script, go back up one directory, and then repeat for the next sub-directory down the line?

回答 (1 件)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 6 月 24 日
vote my question here for providing you solution

Community Treasure Hunt

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

Start Hunting!

Translated by