Simulink.Mask.create

Class: Simulink.Mask
Package: Simulink

Create a mask on a Simulink block

Syntax

p = Simulink.Mask.create(blockName)

Description

p = Simulink.Mask.create(blockName) creates an empty mask on the block specified by blockName. If the specified block is already masked, an error message appears.

Input Arguments

blockName

The handle to the block or the path to the block inside the model.

Examples

  1. Create a mask using a block’s handle.

    Note

    In the model, select the block to be masked.

    p = Simulink.Mask.create(gcbh);
  2. Create a mask using the block’s path.

    p = Simulink.Mask.create('myModel/Subsystem');