open subfolders within a folder

3 views (last 30 days)
anna
anna on 17 Dec 2013
Commented: Image Analyst on 15 Mar 2018
Hi,
I'm trying to write a program that opens subfolders sequentially within a folder and applies a function to files within each subfolder. Any ideas?

Accepted Answer

Image Analyst
Image Analyst on 17 Dec 2013
See my demo, attached below in blue.
  5 Comments
Guillaume
Guillaume on 14 Mar 2018
@Olivia, with the new behaviour of dir introduced a few versions ago, listing all the subfolders is now trivial. See the example
Image Analyst
Image Analyst on 15 Mar 2018
It does work to go into each sub folder one at a time. Not sure what you meant by "does not properly separate the subfolders". But like Guillaume said, there is a new version and I attach a demo for that.

Sign in to comment.

More Answers (0)

Categories

Find more on Argument Definitions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!