delete

Class: Simulink.Mask
Package: Simulink

Unmask a block and delete the mask from memory

Syntax

p = Simulink.Mask.get(blockName)
p.delete

Description

p = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object.

p.delete unmasks the block and deletes the mask from memory.

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 path.

    p = Simulink.Mask.get('myModel/Subsystem');
  2. Unmask the block using the mask object and delete the mask from memory.

    p.delete;
Was this topic helpful?