Main Content

Model Design Metrics

R2026b
Collect metrics for the size, architecture, and complexity of models and other design artifacts

Use model design metrics to assess the status and quality of the model components in your design. Use the Model Maintainability Dashboard to monitor the size, architecture, and complexity of design artifacts. The dashboard traces the dependencies between project files to identify outdated metric results in artifacts like MATLAB® functions, Simulink® models, and Stateflow® charts. Track the complexity of your design with the metric results. A less complex design is easier to read, maintain, and test. You can also use the metric API to programmatically collect metric results and save the results in a report.

Apps

Model Design DashboardGet a high-level overview of model design quality, including structure, complexity, requirements traceability, diagnostics, and reuse (Since R2026b)

Classes

expand all

metric.EngineCollect metric results
metric.ResultResults from specified metric

Functions

expand all

modelDesignDashboardOpen Model Design Dashboard (Since R2022b)
digitalthread.settingsView and update digital thread settings (Since R2025a)
digitalthread.StorageMap.forProjectCreate storage map for current project (Since R2026b)
digitalthread.uri.fromFilePathGet digital thread URI from file path (Since R2026b)
digitalthread.uri.toAbsoluteFilePathConverts digital thread URI to absolute file path (Since R2026b)
digitalthread.uri.toRelativeFilePathConverts digital thread URI to relative file path (Since R2026b)
digitalthread.uri.requirements.fromObjectGet digital thread URI from Requirements Toolbox object (Since R2026b)
digitalthread.uri.requirements.toObjectConvert digital thread URI to Requirements Toolbox object (Since R2026b)
digitalthread.uri.simulink.fromObjectGet digital thread URI from Simulink or Stateflow object (Since R2026b)
digitalthread.uri.simulink.toObjectConvert digital thread URI to Simulink object (Since R2026b)
digitalthread.uri.simulinktest.fromObjectGet digital thread URI from Simulink Test object (Since R2026b)
digitalthread.uri.simulinktest.toObjectConvert digital thread URI to Simulink Test object (Since R2026b)

Topics

Model Design

  • Assess Model Design Using Model Design Dashboard
    Get a high-level overview of model design quality, including structure, complexity, requirements traceability, diagnostics, and reuse.
  • Model Design Metrics
    Use the model design metrics to return metric data on model design quality, including structure, complexity, requirements traceability, diagnostics, and reuse.

Model Maintainability

Artifact Traceability