Main Content

ModelAdvisor.getModelConfiguration

Get Model Advisor configuration associated with model

Since R2022a

    Description

    ConfigFileName = ModelAdvisor.getModelConfiguration(ModelName) returns the name of the Model Advisor configuration file associated with the specified model, ModelName.

    example

    Examples

    collapse all

    Get the configuration file associated with the model vdp.

    Load the model vdp. In the MATLAB® Command Window, enter:

    openExample('vdp')

    Suppose you have a Model Advisor configuration file named config.json in your current working directory. Associate the configuration config.json with the model vdp by entering:

    ModelAdvisor.setModelConfiguration("vdp","config.json")

    View the Model Advisor configuration file associated with the model.

    ModelAdvisor.getModelConfiguration("vdp")
    ans =
    
        'config.json'

    Input Arguments

    collapse all

    Name of a model, specified as a character vector or string scalar.

    Example: "vdp"

    Data Types: char | string

    Output Arguments

    collapse all

    Name of the Model Advisor configuration file, returned as a character vector. If a model does not have an associated Model Advisor configuration file, ModelAdvisor.getModelConfiguration returns an empty character array.

    Version History

    Introduced in R2022a