MATLAB: Do the images not appear in the mask dialog parameters

imagemaskparametersimulink

After adding an image to the mask dialog parameters, as per https://www.mathworks.com/help/simulink/gui/mask-editor-overview.html#bu085z0, my image does not load. I only see a dummy icon when I double click my masked block:

Best Answer

It is likely an issue with the file path. Enter the "FilePath" in the mask dialog parameters without quotes/single quotes and include the image extension. For instance, you can test the shipped image of peppers as:
Note: If the image is already on the path, you only need to enter the name - not the full path.