MATLAB: How to display an image onto the Mask Button in Simulink 8.3 (R2014a)


I have created a mask for my block and there is a Button on the mask. I'd like to display an image on the button instead of text. How can I implement it?

Best Answer

  • You can display the image on the Mask Button. Right click block and choose Mask => Edit Mask => Parameters & Dialog. Choose the Button element:
    1. In 'File path' property,  put in the location of the image file.
    2. In order to show image, the 'Prompt' property has to be an empty string.