Main Content


Class: Simulink.Mask
Namespace: Simulink

Get mask parameter constraint properties


paramConstraint = maskObj.getParameterConstraint(paramConstraintName)


paramConstraint = maskObj.getParameterConstraint(paramConstraintName) gets the properties of a mask parameter 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 of which you want get the properties, specified as character vector.

Output Arguments

expand all

Constraint properties, returned as a cell array.


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

% Find parameters associated with the constraint.
paramConstraint = maskObj.getParameterConstraint('const3')

ans = 

  Constraints with properties:

          Name: 'const3'
  ConstraintRules: [1×2 Simulink.Mask.ParameterConstraintRules]

Version History

Introduced in R2018a