Main Content

Simulink Goto Blocks Distribution

Metric ID

slcomp.GotosDistribution

Description

Use this metric to determine the distribution of the number of Simulink® Goto blocks in each layer of a unit or component.

Collection

To collect data for this metric:

  • In the Model Maintainability Dashboard, point to the Simulink Architecture section and click the Run metrics for widget icon.

  • Use getMetrics with the metric identifier slcomp.GotosDistribution.

Results

For this metric, instances of metric.Result return Value as a distribution structure that contains these fields:

  • BinCounts — The number of artifacts in each bin, returned as a vector.

  • BinEdges — Bin edges for the number of Goto blocks in each layer of a unit or component, returned as a vector. BinEdges(1) is the left edge of the first bin and BinEdges(end) is the right edge of the last bin. The length of BinEdges is one more than the length of BinCounts.

The bins in this metric result correspond to the bins in the Gotos row and Distribution column in the Simulink Architecture section.

See Also

Related Topics