Main Content

Simulink.Mask.delete

Unmask a block and delete the mask from memory

    Description

    example

    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")

    Examples

    collapse 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