You can use Simulink® Preferences to specify Simulink editing environment options and default behaviors. Your settings affect the behavior of all Simulink models, including those currently open and all subsequent models. Your preference settings are preserved for the next time you use the software. The Simulink Preferences window has these panes:
Simulink Preferences General Pane
Set preferences for generated file folders; background colors for print or export; Model block, callback, and sample time legend display.
Simulink Preferences Editor Pane
Configure the Simulink Editor.
Simulink Preferences Model File Pane
Set preferences for file change, autosave, version notifications, and other behaviors relating to model files.
To open the Simulink Preferences dialog box:
From a Simulink Editor menu, in the Modeling tab, select Environment > Simulink Preferences.
In the MATLAB® Command Window, enter
slprivate('showprefs')
To set preferences programmatically, set the root parameter using
set_param
. For example:
set_param(0,'EditorModernTheme','off')
Parameters set programmatically do not persist between Simulink sessions.