Documentation

ModelAdvisor.Preferences class

Package: ModelAdvisor
Superclasses:

Set Model Advisor window preferences by specifying which folders and tabs to display

Description

Use instances of this class to set Model Advisor preferences.

Construction

The constructor ModelAdvisor.Preferences creates an instance of this class with default property values.

Create an instance modelPreferences of the ModelAdvisor.Preferences class.

modelPreferences = ModelAdvisor.Preferences;

Properties

expand all

Selection of the By Product folder in the Model Advisor window. The default value is true.

Example: true

Data Types: logical

Display of the Code Generation Advisor, Upgrade Advisor, and Performance Advisor in the Model Advisor window. The default value is false. You can use these advisors to help configure your model for code generation, upgrade your model for the current release, or improve performance.

Example: true

Data Types: logical

Display of the By Product folder in the Model Advisor window. The default value is true.

Example: true

Data Types: logical

Display of the By Task folder in the Model Advisor window. The default value is true.

Example: true

Data Types: logical

Include exclusions in the Model Advisor report. The default value is true.

Example: true

Data Types: logical

Display of the Exclusions tab in the Model Advisor window. The default value is false. When you click the Exclusions tab, the Model Advisor window displays checks that are excluded form the Model Advisor analysis.

Example: true

Data Types: logical

Display of the Source tab in the Model Advisor window. The default value is false. When you click the Source tab, the Model Advisor window displays the check Title, TitleID, and location of the MATLAB® source code for the check.

Example: true

Data Types: logical

Examples

Turn Off Display Of By Product Folder

This example shows how to not display the By Product folder in the Model Advisor window:

mp = ModelAdvisor.Preferences;
mp.load;
mp.ShowByProduct = false;
mp.save

Alternatives

You can set the Model Advisor preferences by using the Model Advisor Preferences dialog box:

  • On the Model Advisor menu, select Settings > Preferences.

  • From the Model Editor, select Analysis > Model Advisor > Preferences.

Introduced in R2014b

Was this topic helpful?