Main Content

isSimpleMask

Class: Simulink.Mask
Namespace: Simulink

Check if block mask contains only mask dialog controls

Since R2024b

Syntax

maskObj.isSimpleMask

Description

maskObj.isSimpleMask returns a logical value 1(true) if the block mask contains only dialog controls without any mask parameters and returns logical value 0(false) otherwise.

Examples

expand all

model = "slexMaskingBasic.slx";
load_system(model);

Get the mask object.

maskObj = Simulink.Mask.get("slexMaskingBasic/mx + b");

Determine if the mask contains only mask dialog controls without any parameters.

maskObj.isSimpleMask
ans = logical
   0

Version History

Introduced in R2024b