deleteMetrics
Syntax
Description
deleteMetrics(
deletes the metric results specified by metricEngine
,metricIDs
)metricIDs
for the specified
metricEngine
object. To collect metric results for the
metricEngine
object, use the execute
function. To access the results, use the generateReport
function.
deleteMetrics(
deletes the metric results for the artifacts in the specified metricEngine
,metricIDs
,'ArtifactScope',scope
)scope
.
For example, you can specify scope
to be a single design unit in your
project, such as a Simulink® model or an entire model reference hierarchy.
Examples
Input Arguments
Tips
If design changes are not reflected in the design cost metric results, first use the
deleteMetrics
function to delete themetric.Result
, then use theexecute
function to collect metrics.Report generation using the
generateReport
function requires that the metric collection be executed in the current session. To recollect design cost metrics, first use thedeleteMetrics
function to delete themetric.Result
, then use theexecute
function to collect metrics.
Version History
Introduced in R2022a
See Also
metric.Engine
| execute
| getMetrics
| Design Cost Model Metrics