Will this also create labels as it is created in matlab using the name of the subfolders? Because according to your code it seems that it is only for a single image but I want to import a complete folder that has subfolders with multiple images and also create label according to the name of the subfolders.