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
DeselectByProduct
— Deselect the By Product folder
true
(default)
Selection of the By Product folder in the
Model Advisor window. The default value is true
.
Example: true
Data Types: logical
ShowAccordion
— Display advisors
true
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
ShowByProduct
— Display the By Product folder
true
(default)
Display of the By Product folder in the
Model Advisor window. The default value is true
.
Example: true
Data Types: logical
ShowByTask
— Display the By Task folder
true
(default)
Display of the By Task folder in the Model
Advisor window. The default value is true
.
Example: true
Data Types: logical
ShowExclusionsInRpt
— Include exclusions in report
true
(default)
Include exclusions in the Model Advisor report. The default
value is true
.
Example: true
Data Types: logical
ShowExclusionTab
— Display the Exclusions tab
false
(default)
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
ShowSourceTab
— Display the Source tab
false
(default)
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
Hide By Product Folder in Model Advisor Window
This code hides the By Product folder in the Model Advisor window.
mp = ModelAdvisor.Preferences; mp.load; mp.ShowByProduct = false; mp.save
Version History
Introduced in R2014b
See Also
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)