First of all, if you have folders you better define these:
that is the base folder or directory, then define the files you have in that folder, if these are png you can just read those:
>> dir0 = dir ('*.png')
11×1 struct array with fields:
Now you have all the files in that folder and you do not need to write them one by one, e.g.
Then you do the augmentation and then save the images to the folder, create a new filename for your output and print to save in the folder where you are working:
Hope that helps. If it does, please accept the answer, if it not, let me know.