Main Content

Simulink.Mask.create

Create a mask on a Simulink block

    Description

    example

    maskobj= 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.

    Examples

    collapse all

    Create a mask using a block’s handle.

    Note

    In the model, select the block to be masked.

    maskobj = Simulink.Mask.create(gcb);

    Create a mask using the block’s path.

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

    Input Arguments

    collapse all

    Handle or path to the block inside the model, specified as a character vector.

    Data Types: char | string

    Version History

    Introduced in R2010a