Documentation Center

  • Trial Software
  • Product Updates

Contents

Simulink.Preferences

Set Model Advisor preferences

Description

Use instances of this class to set Model Advisor preferences.

Property Summary

PropertyDescriptionValues
ShowByProduct

String specifying the display of the By Product folder in the Model Advisor window. The default value is .

{true} | false

ShowByTask

String specifying the display of the By Task folder in the Model Advisor window. The default value is true.

{true} | false

ShowSourceTab

String specifying the 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.

true | {false}

ShowExclusionTab

String specifying the 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.

true | {false}

ShowAccordian

String specifying the 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.

true | {false}

ShowExclusionsInRpt

String specifying to include exclusions in the Model Advisor report. The default value is true.

{true} | false

Methods

NameDescription

load

Load Model Advisor preferences.

save

Save Model Advisor preferences.

Examples

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.

See Also

Was this topic helpful?