MATLAB Function Metric
Metric ID
Metric ID:
mathworks.metrics.MatlabFunctionCount
Description
Metric Type: Size
Use this metric to count the number of MATLAB Function blocks inside a
component. This metric is available with Simulink®
Check™. To collect data for this metric, use getMetrics with the metric identifier,
mathworks.metrics.MatlabFunctionCount.
The slmetric.metric.AggregationMode property setting is
Sum.
Computation Details
Runs on library models.
Analyzes content in masked subsystems.
If specified, analyzes the content of library-linked blocks or referenced models.
Results
For this metric, instances of slmetric.metric.Result provide the
following results:
Value: Number of MATLAB Function blocks.AggregatedValue: Number of MATLAB Function blocks for component and its subcomponents.Measures: Not applicable.