Main Content

getOwner

Class: Simulink.Mask
Namespace: Simulink

Determine the block that owns a mask

Description

maskobj.getOwner returns the interface to the block that owns the mask.

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 a masked block’s path.

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

Get the interface to the block that owns the mask.

maskobj.getOwner;

Version History

Introduced in R2014a