Creating a mask for Stateflow® charts, state transition tables, and truth tables simplifies using and sharing blocks. The mask encapsulates the block by hiding the underlying logic and creates a user interface for the block. You can customize the block by:
Changing the appearance with meaningful icons and ports.
Creating a user interface for parameters.
Adding customized documentation.
You decide which parameters can be changed through the mask user interface. You can provide meaningful descriptions of these parameters.
You cannot mask atomic subcharts, states, or any other objects within a chart. You can only create masks on Stateflow object blocks you can access from the Simulink® library: charts, state transition tables, and truth tables. Masking a Stateflow block is the same as masking other Simulink blocks.