MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

How to create a loop in a main directory for each sub folders and do function for each file in sub directory?

1 view (last 30 days)
sam moor
sam moor on 3 Jan 2017
Closed: Walter Roberson on 4 Jan 2017
I have main directory named as 'Far Field Ground record sets'and 22 sub directory in it as shown below. In each sub directory I have bunch of files (I have shown files in first sub folder in the figure below) but I am interested in only 2 files (RSN953_NORTHR_MUL009.AT2 and RSN953_NORTHR_MUL279.AT2) in it. I want to do function for each file in each sub directory and again go for next directory and do the same for all 22 sub directory. Any suggestion is highly appreciated. Thank you.
<<
>>

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by