You can use model metrics to assess that your model and code comply with size, complexity, and readability requirements. You can also use the model metric API to create your own model metrics, compute metrics, and export metric data. To get started, see Collect Model Metrics Using the Model Advisor.
|Collect metric data on models or model components|
|Metric data for specified model component and metric algorithm|
|Metric data for specified model metric|
|Details about instances of slmetric.metric.Result objects|
|Create new metric class for a custom model metric|
|Register a custom model metric with the model metric repository|
|Unregister a custom model metric from the model metric repository|
|Update available model metrics|
Collect and view metric data for quality assessment.
Assess model size, complexity, and readability, using the Model Advisor to run model metric checks.
Use the model metric API to programmatically collect metrics for a model, such as subsystem and block counts.
Model metrics provided by MathWorks that return metric data on your model for size, complexity, readability, and compliance to standards and guidelines.
Options for defining model metric data aggregation and returning aggregated model metric results.
Create a new model metric by using the
and defining the metric algorithm.