You can create and save parameter constraints in a MAT file. You can save a constraint in a MAT file either from the Mask Editor or programmatically. Multiple block masks can share a parameter constraint saved in a MAT file. To create a shared constraint:
Launch Constraint Manager.
Click Create Constraint.
Create a constraint with the required attributes.
Select the Save constraint to MAT file check box and specify the MAT file name.
Click Apply.
A shared constraint is listed in the Property editor section in the format
<MATFileName>:<ConstraintName>. You can select any available
constraint as required and associate it with an Edit parameter.
While creating shared constraints it is recommended that you:
Save constraints to MAT files that are in the MATLAB path.
Provide meaningful names to constraints so that other users can understand the nature of the constraint easily.