Main Content

delete

Class: Simulink.Mask
Namespace: Simulink

Unmask a block and delete the mask from memory

Description

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

To get the mask object for the mask on a block named BlockName, use this command.

maskobj = Simulink.Mask.get("BlockName")

example

Examples

expand all

Get mask as an object using the masked block’s path.

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

Unmask the block using the mask object and delete the mask from memory.

maskobj.delete;

Version History

Introduced in R2010a