Main Content

getAssociatedParametersOfConstraint

Class: Simulink.Mask
Namespace: Simulink

Get mask parameters associated with a constraint

Syntax

maskParam = maskObj.getAssociatedParametersOfConstraint(paramConstraintName)

Description

maskParam = maskObj.getAssociatedParametersOfConstraint(paramConstraintName) gets the parameters that are associated with a mask constraint.

Input Arguments

expand all

Handle to the block mask, specified as mask object. You can use the Simulink.Mask.get command to get the block mask handle. For more information, see Simulink.Mask.get .

Data Types: char | cell

Name of the constraint for which you want to find the associated mask parameters, specified as character vector.

Output Arguments

expand all

Mask parameter, specified as a cell array.

Examples

% Get block mask handle.
maskObj = Simulink.Mask.get(gcb); 

% Find parameters associated with the constraint.
maskParam = maskObj.getAssociatedParametersOfConstraint('const3')

ans =

  1×1 cell array

    {'Parameter1'}

Version History

Introduced in R2018a