Automatically change subfolders within a directory

I need to some code that will automatically run through all the folders in a directory, running the code for all the files within each folder. I am not sure how to automatically change folders within the directory. All the folders begin with 2011 but the next 16 numbers vary randomly.
Thanks

Categories

Asked:

on 29 Jun 2011

Community Treasure Hunt

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

Start Hunting!