Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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

See Also

| |

Tutorials

Was this topic helpful?