- Convert the label to a string.
- Use the label name to create a new folder.
- Use the "imwrite" function to save the image into the newly created folder. For more information on "imwrite" function, refer to this documentation: https://www.mathworks.com/help/matlab/ref/imwrite.html .