This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

viewReport

View Model Advisor run results for systems

Syntax

viewReport(SysResultObjArray{})
viewReport(SysResultObjArray,'MA')
viewReport(SysResultObjArray,'Cmd')

Description

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

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

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

Open the Model Advisor report for sldemo_auto_climatecontrol/Heater Control.

% Identify Model Advisor configuration file.
% Create list of models to run.
fileName = 'slvnvdemo_mdladv_config.mat';
SysList={'sldemo_auto_climatecontrol/Heater Control',...
    'sldemo_auto_climatecontrol/AC Control'};

% Run the Model Advisor.
SysResultObjArray = ModelAdvisor.run(SysList,'Configuration',fileName);

% Open the Model Advisor report.
viewReport(SysResultObjArray{1})

Open Model Advisor and display results for sldemo_auto_climatecontrol/Heater Control.

% Identify Model Advisor configuration file.
% Create list of models to run.
fileName = 'slvnvdemo_mdladv_config.mat';
SysList={'sldemo_auto_climatecontrol/Heater Control',...
    'sldemo_auto_climatecontrol/AC Control'};

% Run the Model Advisor.
SysResultObjArray = ModelAdvisor.run(SysList,'Configuration',fileName);

% Open the Model Advisor and display results.
viewReport(SysResultObjArray{1}, 'MA')

Display results in the Command Window for sldemo_auto_climatecontrol/Heater Control.

% Identify Model Advisor configuration file.
% Create list of models to run.
fileName = 'slvnvdemo_mdladv_config.mat';
SysList={'sldemo_auto_climatecontrol/Heater Control',...
    'sldemo_auto_climatecontrol/AC Control'};

% Run the Model Advisor.
SysResultObjArray = ModelAdvisor.run(SysList,'Configuration',fileName);

% Display results in the Command Window.
viewReport(SysResultObjArray{1}, 'Cmd')

Introduced in R2010b