Main Content

viewReport

View Model Advisor run results for systems

    Description

    example

    viewReport(Result) opens the Model Advisor Report for the system result specified by Result. Result is a ModelAdvisor.SystemResult object returned by ModelAdvisor.run.

    example

    viewReport(Result,'MA') displays the results in the Model Advisor.

    example

    viewReport(Result,'Cmd') displays the Model Advisor run summary in the Command Window.

    Examples

    collapse all

    Open the Model Advisor Report for the specified system.

    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'});

    Open the Model Advisor report for vdp. The results for the model vdp correspond to the first ModelAdvisor.SystemResult object in results.

    viewReport(results{1})

    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.

    Open Model Advisor and display the Model Advisor run results.

    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'});

    Open Model Advisor and display the results of the Model Advisor run for vdp.

    viewReport(results{1}, 'MA')

    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.

    Display the Model Advisor run summary in the Command Window.

    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'});

    Display the results for vdp in the Command Window.

    viewReport(results{1}, 'Cmd')

    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.SystemResult object returned by ModelAdvisor.run.

    Version History

    Introduced in R2010b