addThresholdRule
R2026bDescription
adds a threshold rule to the configuration config and returns the new
rule = addThresholdRule(config,Name=Value)metric.threshold.ThresholdRule object. Use threshold rules to define
compliance criteria for metrics displayed in the Model Testing, SIL Code Testing, and
PIL Code Testing dashboards. If the shipping thresholds do not match your project
criteria, add custom threshold rules to specify how metric results are classified as
shown in Adjust Dashboard Thresholds to Match Your Testing Criteria.

Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2026b