getMetrics
Syntax
Description
returns metric results for the specified results
= getMetrics(metricEngine
,metricIDs
)metric.Engine
object for the
metrics that you specify in metricIDs
. To collect metric results for
the metric.Engine
, use the execute
function. Then,
access the results by using getMetrics
.
Note that there is also a function getMetrics
(Fixed-Point Designer)
in the Fixed-Point Designer™ documentation.
returns metric results for the artifacts in the results
= getMetrics(metricEngine
,metricIDs
,'ArtifactScope',scope
)scope
that you specify.
For example, you can specify the scope
to be a unit in your
project.
Examples
Input Arguments
Output Arguments
Alternative Functionality
App
You can also view metric results by using the dashboard user interface.
For the model maintainability metrics, use the Model Maintainability dashboard. For more information, see Monitor Design Complexity Using Model Maintainability Dashboard.
For the model testing metrics, use the Model Testing Dashboard. For more information, see Explore Status and Quality of Testing Activities Using Model Testing Dashboard.
For the code testing metrics, use the SIL Code Testing or PIL Code Testing dashboard. For more information see, View Status of Code Testing Activities for Software Units in Project.
Version History
Introduced in R2020b