Collect Model Metrics Using the Model Advisor

To help you assess your model for size, complexity, and readability, you can run model metrics in the Model Advisor By Task > Model Metrics subfolder.

  1. Open the sldemo_fuelsys model.

  2. In the model window, open the Modeling tab and click Model Advisor. A System Selector — Model Advisor dialog box opens. Click OK.

  3. In the left pane of the Model Advisor, navigate to By Task > Model Metrics. Select the model metrics to run on your model.

  4. Click Run Selected Checks.

  5. After the Model Advisor runs an analysis, in the left pane of the Model Advisor window, select a model metric to explore the result. Select the metric Simulink block metric. A summary table provides the number of blocks at the root model level and subsystem level.

    Alternatively, you can view the analysis results in the Model Advisor report.

After reviewing the metric results, you can update your model to meet size, complexity, and readability recommendations.

Related Topics