Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

What Are Masks?

A mask is a custom user interface for a Simulink block. The mask hides the native user interface of the underlying block, substituting an icon and a parameters dialog box defined by the mask. You can apply a mask to any Subsystem block, Model block, or S-Function block. The block can optionally reside in a user-defined library.

Masking a block changes only the block's user interface, not its underlying characteristics. For example, masking a nonatomic subsystem does not make it act as an atomic subsystem, and masking a virtual block does not convert it to a nonvirtual block. You cannot save a mask separately from the block that it masks, or create a freestanding mask definition and apply it to more than one block.

A mask's icon and parameters dialog box can provide any capability that a block's native icon and dialog box can provide. When you set mask parameter values, the mask can use the values to dynamically change the mask's icon and dialog box, and to calculate values to be used under the mask. A mask on a subsystem can dynamically change the subsystem to reflect mask parameter values.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS