Main Content

ModelAdvisor.Preferences Class

Namespace: 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. 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, Title ID, 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

Version History

Introduced in R2014b