Main Content


Class: Advisor.Application
Package: Advisor

Access Model Advisor analysis results


Access Application object analysis results.

Results = getResults(app) provides access to Model Advisor analysis results.


Results = getResults(app,Name,Value)


expand all

Create an Application object, run Model Advisor analysis, and get the results.

Create an Application object.

app = Advisor.Manager.createApplication();

Open the model and set the root analysis to RootModel.

% Open the model

% Set root model to sldemo_mdlref_basic model
RootModel = 'sldemo_mdlref_basic';

% Set the Application object root analysis

Run Model Advisor analysis.


Get the analysis results.


Input Arguments

expand all

Advisor.Application object, created by Advisor.Manager.createApplication

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Component IDs, as specified as a cell array of IDs

Data Types: cell

Output Arguments

expand all

Analysis results, returned as a cell array of ModelAdvisor.SystemResult objects.

Version History

Introduced in R2015b