Main Content

slmetric.config.setActiveConfiguration

Namespace: slmetric.config

(To be removed) Activate custom configuration for metric engine to use

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.

Description

slmetric.config.setActiveConfiguration(fullfile) sets the custom configuration as the default configuration. When you collect metric data that uses the Metrics Dashboard or the slmetric.Engine execute method, the metric engine uses this custom configuration.

Note

Passing an empty string to this function (that is, slmetric.config.setActiveConfiguration('')), resets the configuration to the default, which is shipping configuration.

example

Examples

collapse all

To set the active metric configuration, at the MATLAB command line:

slmetric.config.setActiveConfiguration('C:\temp\MyConfig.xml'); 

Input Arguments

collapse all

Full file path to folder containing the XML file, which contains Metrics Dashboard custom configurations.

Example: 'C:\temp\MyConfig.xml'

Data Types: char

Version History

Introduced in R2018b

collapse all

R2022a: Warns

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.