Simulink.Mask.get

Class: Simulink.Mask
Package: Simulink

Get a block mask as a mask object

Syntax

p = Simulink.Mask.get(blockName)

Description

p = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object. If the specified block is not masked, a null value returns.

Input Arguments

blockName

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

Examples

  1. Get mask as an object using a masked block’s handle.

    Note

    In the model, select the masked block.

    p = Simulink.Mask.get(gcbh);
  2. Get mask as an object using a masked block’s path.

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