Customize Block Icons
A mask is a custom interface for a block that hides the block content, making it appear as an atomic block with its own icon and parameter dialog box. The mask encapsulates the block logic, provides controlled access to the block data, and simplifies the graphical appearance of a block diagram.
A mask changes only the block interface, not the underlying block characteristics. You can provide access to one or more underlying block parameters by defining corresponding mask parameters on the mask.
Mask a Simulink® block to:
Display an icon on a block.
Provide a customized dialog box for the block.
Provide a dialog box that enables you to access only select parameters of the underlying blocks.
Provide users customized description that is specific to the masked block.
Initialize parameters using MATLAB® code.
To create a mask that displays an icon on the block:
Right-click the block and select Mask > Create Mask.
In the Mask Editor dialog box, click the Icon tab.
In the Mask Editor toolstrip, on the Icon tab, click Add Image.
In the file browser that appears, navigate to the image you want to use and click Open.
In the Mask Editor toolstrip, on the Icon tab, click Save Mask.
Close the Mask Editor dialog box.
To look under the mask, click the arrow in the lower left corner of the block.
For an example on how to create a mask on which you can modify the values of block parameters, see Create a Simple Mask.
For more information about masks, see Create Block Masks.