主要内容

experimentResultNames

R2026b

List result names for experiment

Since R2026b

    Description

    resultNames = experimentResultNames(projectFolder,experimentName) returns the names of all results for the specified experiment. Each result corresponds to one execution of the experiment, either from the Experiment Manager app or from the runExperiment function.

    example

    Examples

    collapse all

    List all results for an experiment.

    resultNames = experimentResultNames("MyProject","Experiment1")
    resultNames =
    
      2x1 string array
    
        "Result1"
        "Result2"

    You can index into resultNames to pass a result name to other functions. For example, you can use experimentResult("MyProject","Experiment1",resultNames(1)).

    Input Arguments

    collapse all

    Path to the project PRJ file or project root folder, specified as a string scalar or character vector. You can specify an absolute or relative path. The project must contain one or more Experiment Manager experiments.

    Example: "C:\Projects\MyProject\MyProject.prj"

    Example: "C:\Projects\MyProject"

    Example: "MyProject"

    Name of the experiment for which to list results, specified as a string scalar or character vector.

    Example: "Experiment1"

    Output Arguments

    collapse all

    Result names, returned as a string array containing the names of all results for the specified experiment.

    Version History

    Introduced in R2026b