Main Content

getConfigFile

Return active Model Advisor configuration filename

Since R2024b

    Description

    activeConfig = getConfigFile(CfgObj) returns the name of the active configuration file accessed by the CfgObj object.

    example

    Examples

    collapse all

    Get the name of the active configuration filename.

    Create a Model Advisor configuration object.

    CfgObj = Advisor.Config;

    Load an existing configuration file myCustomFile.json that is located in your working directory.

    loadConfig(CfgObj,'myCustomFile.json');

    Get the name of the active configuration file.

    activeConfig = getConfigFile(CfgObj)
    activeConfig =
    
       'myCustomFile.json'

    Input Arguments

    collapse all

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

    Output Arguments

    collapse all

    Active configuration file name, returned as a character vector.

    Example: 'myCustomFile.json'

    Version History

    Introduced in R2024b