Here is what I need to do:

All images (40,000 of them) are under a file and they are all named "roof_*.jpg";

for i=1:40000  

  Step One: import and image from the file directory 

   "/Users/gaochenying1/Documents/MATLAB/roof_images_copy"

   Step Two: process it (that part I can do);

   Step Three: export processed image into the same file but named

   "r_roof_*.jpg";

end

I've tried 

filelist = dir([fileparts('/Users/gaochenying1/Documents/MATLAB/roof_images_copy') filesep 'roof_*.jpg']);

fileNames = {filelist.name}';

It didn't work at all!

More Chenying Gao's questions See All
Similar questions and discussions