I have 153 folders each containing 16 .bmp images. I need to run through each folder, and apply a particular function that segments the image. Then I would like to save the corresponding segmented image in each corresponding folder. I'm new at Matlab and I'm finding this very difficult. Any help would be appreciated!