Contenu principal

openfig

R2026b

Open visualizations for experiment trial

Since R2026b

    Description

    F = openfig(vis,names) opens the visualizations for an experiment trial. The visualizations are generated by the experiment function or training function.

    example

    Examples

    collapse all

    To see which visualizations are available for a trial, access the figure names for the visualizations by using the FigureNames property of the Visualization object. You can get the Visualization object for a trial by using the Visualization property of the corresponding ExperimentTrial object.

    trial = experimentTrial("MyProject","Experiment1","Result1",1);
    vis = trial.Visualization;
    names = vis.FigureNames
    names = 
    
      2×1 string array
    
        "Custom Figure 1"
        "Custom Figure 2"

    To open visualizations and return the corresponding Figure objects, call the openfig function.

    figs = openfig(vis,names);

    Input Arguments

    collapse all

    Trial visualizations, specified as a Visualization object that contains visualizations that depend on the experiment type. You can get the Visualization object for a trial by accessing the Visualization property of the corresponding ExperimentTrial object.

    Experiment TypeVisualizations
    Built-in training
    • Training Plot

    • Confusion Matrix, Training Data

    • Confusion Matrix, Validation Data

    Custom trainingCustom figures created in the training function
    General purposeCustom figures created in the experiment function

    To see which visualizations are available, access the figure names, which are stored as a string array in the FigureNames property of the Visualization object.

    Figure names, specified as a string array, character vector, or cell array of character vectors. To query the figure names, access the FigureNames property of the Visualization object.

    Output Arguments

    collapse all

    Figures, returned as a Figure object or an array of Figure objects.

    Version History

    Introduced in R2026b