Masking a Block

About Block Masking

You use the model editor to mask Subsystem, Model, and S-function blocks, and the set_param command to mask built-in blocks.

Masking a Subsystem

To mask a Subsystem:

  1. Select the block.

  2. Select Mask Subsystem from the model editor's Edit menu or from the block's context menu. (Right-click the subsystem block to display its context menu.)

    The Mask Editor appears.

    See Mask Editor for a detailed description of the Mask Editor.

  3. Use the Mask Editor's tabbed panes to perform any of the following tasks.

  4. Click Apply to apply the mask to the subsystem or OK to apply the mask and dismiss the Mask Editor.

Masking a Built-in Block

You can reduce the size of your model by directly masking built-in blocks instead of placing them inside a subsystem. To mask a built-in block:

  1. Select the block in the model.

  2. Type the following command at the MATLAB® command prompt:

    set_param(gcb,'Mask','on')
  3. Select Edit Mask from the model editor's Edit menu or from the block's context menu. (Right-click the block to display its context menu.) The Mask Editor appears. See Mask Editor for a detailed description of the Mask Editor.

  4. Use the Mask Editor's tabbed panes to perform any of the following tasks.

  5. Click Apply to apply the mask to the block or OK to apply the mask and dismiss the Mask Editor.

  


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