Some of the help websites you in the creation of Mastermind:
https://www.mathworks.com/help/matlab/matlab_prog/create-string-arrays.html
https://www.mathworks.com/help/matlab/ref/colon.html
https://www.mathworks.com/help/matlab/matlab_prog/converting-from-string-to-numeric.html
https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated-gif-images-in-matlab