Main Content

createFromCheckList

Add checks in Model Advisor configuration using predefined list of check IDs

Since R2024b

    Description

    createFromCheckList(CfgObj,CheckIDlist) adds checks whose IDs are listed in CheckIDlist to the Model Advisor configuration accessed by the CfgObj object. The checks are added under the root node of the configuration. Use this function to create a custom configuration for a predefined list of check IDs.

    example

    Examples

    collapse all

    This example shows how to create a new custom configuration for a list of checks.

    Create a list of check IDs..

    checkList = {'mathworks.jmaab.jc_0231','mathworks.maab.db_0140'};

    Create a Model Advisor configuration object.

    CfgObj = Advisor.Config;

    The object CfgObj provides you access to an editable blank configuration that you use to create a custom configuration.

    Add the checks in checkList to the active configuration.

    createFromCheckList(CfgObj,checkList);

    Save the active configuration in a JSON file.

    saveConfiguration(CfgObj,'CongfigCreatedFromList.json');

    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 the loadConfig function.

    List of check IDs, specified as a cell array.

    Example: {'mathworks.jmaab.jc_0231','mathworks.maab.db_0140'}

    Version History

    Introduced in R2024b