Main Content
addCrossParameterConstraint
Class: Simulink.Mask
Namespace: Simulink
Add cross-parameter constraint
Syntax
CrossConstraint = maskObj.addCrossParameterConstraint(Name,Value)
Description
adds a constraint among parameters of a mask.CrossConstraint
= maskObj
.addCrossParameterConstraint(Name,Value
)
Input Arguments
Output Arguments
Examples
% Get block mask handle. maskObj = Simulink.Mask.get(gcb); % Add cross parameter constraint. CrossConstraint = maskObj.addCrossParameterConstraint(... 'Name','crossconstraint1',... 'MATLABexpression','upperbound > lowerbound',... 'ErrorMessage','Incorrect value specified.')
ans = CrossParameterConstraints with properties: Name: 'crossconstraint1' MATLABexpression: 'upperbound > lowerbound' ErrorMessage: 'Incorrect value specified.'
Version History
Introduced in R2018a