| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
You can use the Simulink Mask Editor to define a custom interface for a Subsystem block, Model block, or S-Function block. This chapter provides reference information about Mask Editor capabilities, but does not describe the workflows needed to combine those capabilities to create and use masks. That information appears in Working with Block Masks in the Simulink User's Guide.
To invoke the Mask Editor on a block, do one of the following:
To create a new mask, select the block to be masked, then choose Mask BlockType from the model window's Edit menu or the block's context menu.
To edit an existing mask, select the masked block, then choose Edit Mask from the model window's Edit menu or the block's context menu.
A Mask Editor like the following appears. If the block is already masked, the current mask specification appears in the editor, allowing you to change the mask as needed. Otherwise, the editor is initially empty:
![]()
The Mask Editor contains a set of tabbed panes, each of which enables you to define a feature of the mask:
The Icon & Ports pane enables you to define the block icon. See Icon & Ports Pane.
The Parameters pane enables you to define and describe mask dialog box parameter prompts, and to name the variables associated with the parameters. See Parameters Pane.
The Initialization pane enables you to specify initialization commands. See Initialization Pane.
The Documentation pane enables you to define the mask type and specify the block description and the block help. See Documentation Pane.
Five buttons appear along the bottom of the Mask Editor:
The Unmask button deactivates the mask and closes the Mask Editor. While the model is still active, the mask information is still retained so that you can reactivate it.
To reactivate the mask, select the block and choose Mask Subsystem. The Mask Editor opens, displaying the previous settings. Click OK or Apply to restore the mask.
When you close the model, the inactive mask information is discarded. If you want the mask information after this, you will need to recreate it the next time you open the model.
The OK button applies the mask settings on all panes and closes the Mask Editor.
The Cancel button closes the Mask Editor without applying any changes made since you last clicked the Apply button.
The Help button displays online information about the Mask Editor.
The Apply button applies the mask settings on all panes and leaves the Mask Editor open.
To see the system under the mask without unmasking it, select the Subsystem block, then select Look Under Mask from the Edit menu or the block's context menu. This command opens the subsystem. The block's mask is not affected.
![]() | Simulink Mask Editor | Icon & Ports Pane | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |