Main Content

viewReport

View Model Advisor run results for systems

Description

example

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

example

viewReport(SysResultObjArray,'MA') opens the Model Advisor and displays the results of the run for the system specified by SysResultObjArray.

example

viewReport(SysResultObjArray,'Cmd') displays the Model Advisor run summary in the Command Window for the systems specified by SysResultObjArray.

Input Arguments

SysResultObjArray{}

ModelAdvisor.SystemResult object returned by ModelAdvisor.run.

Examples

collapse all

Open the Model Advisor Report for the specified system.

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.

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.

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.

Introduced in R2010b