Contenuto principale

metric.config.Configuration.open

R2026b

Load configuration from JSON file

Since R2026b

    Description

    config = metric.config.Configuration.open(filename) loads a configuration from the specified JSON file and returns a metric.config.Configuration object. Use this method to load an existing custom configuration so you can view or modify it programmatically.

    example

    Examples

    collapse all

    Load a configuration from an existing JSON file.

    proj = currentProject;
    p = proj.RootFolder;
    config = metric.config.Configuration.open(fullfile(p,"MyConfig.json"))

    Input Arguments

    collapse all

    Path to the existing configuration JSON file, specified as a string scalar or character vector. The file must exist on disk.

    Data Types: string | char

    Output Arguments

    collapse all

    Configuration, returned as a metric.config.Configuration object populated with the threshold sets, threshold rules, and classifications stored in the specified JSON file.

    Version History

    Introduced in R2026b