Main Content

view

View Model Advisor run results for checks

    Description

    example

    view(CheckResultObj) opens a web browser and displays the results of the check specified by CheckResultObj. CheckResultObj is a ModelAdvisor.CheckResult object returned by ModelAdvisor.run.

    Examples

    collapse all

    Run a check on a model and view the results in a web browser.

    Open the model vdp by entering:

    openExample('simulink_general/VanDerPolOscillatorExample')

    Use Model Advisor to run the check Check optimization settings on the model vdp.

    results = ModelAdvisor.run({'vdp'},...
        {'mathworks.design.OptimizationSettings'});

    View the results of the Model Advisor run.

    view(results{1}.CheckResultObjs(1))

    The results for the model vdp correspond to the first ModelAdvisor.SystemResult object in results. The results for the check Check optimization settings correspond to the first ModelAdvisor.CheckResult object in the array of CheckResultObj objects.

    For more information on Model Advisor checks, see Model Advisor Checks Documentation. For details on how to find check IDs, see Find Model Advisor Check IDs.

    Input Arguments

    collapse all

    ModelAdvisor.CheckResult object which is a part of a ModelAdvisor.SystemResult object returned by ModelAdvisor.run.

    Version History

    Introduced in R2010b