Main Content

deselect

Exclude check and folder instances from Model Advisor analysis

Since R2024b

Description

deselect (CfgObj,CheckInstanceID) excludes the specified check instance CheckInstanceID in the configuration accessed by the CfgObj object from the Model Advisor analysis. The excluded check instances are preserved in the configuration and if needed you can include those back to the analysis by using the select function.

example

deselect (CfgObj,FolderInstanceID) excludes the specified folder instance FolderInstanceID and the checks in it from the Model Advisor analysis.

Examples

collapse all

Consider, an existing configuration file myCustomFile.json is located in your working directory. This example shows how to exclude check instances in the configuration from the Model Advisor analysis.

Create a Model Advisor configuration object.

CfgObj = Advisor.Config;

Load the existing configuration file myCustomFile.json.

loadConfig(CfgObj,'myCustomFile.json');

Add the checks with IDs mathworks.jmaab.jc_0231 and mathworks.jmaab.jc_0222 under the root node.

addCheck(CfgObj,'_SYSTEM','mathworks.jmaab.jc_0231');
addCheck(CfgObj,'_SYSTEM','mathworks.jmaab.jc_0222');

The added checks are automatically included in the Model Advisor analysis. Exclude them from the analysis while preserving the instances in the configuration.

deselect(CfgObj,'_SYSTEM_mathworks.jmaab.jc_0231');
deselect(CfgObj,'_SYSTEM_mathworks.jmaab.jc_0222');

Input Arguments

collapse all

Model Advisor configuration object, specified as an Advisor.Config object.

By default, after creation, the object provides you access to an editable blank configuration that you can use to create a new custom configuration. To customize an existing configuration, load the configuration JSON file as the active configuration by using loadConfig.

Check instance ID, specified as a character vector or string scalar. The instance ID represents the location of the check in the configuration in the form _SYSTEM_Check Hierarchy_Check ID.

Example: '_SYSTEM_By Product_mathworks.jmaab.ar_0001'

Folder instance ID, specified as a character vector or string scalar. The instance ID represents the location of the folder in the configuration in the form _SYSTEM_Folder Hierarchy.

Example: '_SYSTEM_By Product'

Alternative Functionality

App

You can also use the Model Advisor Configuration Editor to modify existing configurations and create new configurations. In the Model Advisor Configuration Editor, to exclude a check or folder from the Model Advisor analysis, clear the corresponding check box. For more information, see Use Model Advisor Configuration Editor to Customize Model Advisor.

Version History

Introduced in R2024b