Filter Subfolders by name to only have certain to choose from

3 views (last 30 days)
Hi, I have data from experiments in 6 different folders. Each folder has subfolder with some string in it that identifies the exact test and measurement location. So what I'm trying to do is to specify the experiment first (so far using uigetdir) to choose the experiment. Now i need to filter the subfolders by a piece of string that is in the folder name and input by the user to only leave subfolders with the same experiment conditions in the list.
Does anyone have any good suggestions of how to achieve this?

Accepted Answer

Image Analyst
Image Analyst on 27 Aug 2015
Use strfind() before you add the folder you're checking to your list.

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!