Main Content

loadConfig

Load existing configuration file for customization

Since R2024b

    Description

    loadConfig(CfgObj,fileName) loads the existing Model Advisor configuration from fileName as the active configuration. The active configuration is the configuration for which you have editing access.

    example

    Examples

    collapse all

    Load the configuration file, myCustomFile.json, located in your working directory to customize it.

    Create a Model Advisor configuration object.

    CfgObj = Advisor.Config;

    Load the myCustomFile.json file.

    loadConfig(CfgObj,'myCustomFile.json');

    Input Arguments

    collapse all

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

    Name of the Model Advisor configuration JSON file, specified as a character vector or string scalar. If the configuration JSON file that you want to load is not located in your working directory, pass the absolute path of the file as a character vector or string scalar.

    Example: 'C:/CustomConfiguration/MyConfiguration.json'

    Example: 'MyConfiguration.json'

    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, use the Open button to load an existing configuration. For more information, see Use Model Advisor Configuration Editor to Customize Model Advisor.

    Version History

    Introduced in R2024b