| MATLAB® | ![]() |
| On this page… |
|---|
Use preferences to specify options for MATLAB® tools, as follows:
Select File > Preferences. Alternatively,
click the Preferences button
on the desktop toolbar;
if the button is not on the toolbar, you can add it—for information,
see Toolbars Preferences for the MATLAB® Desktop and Editor.
In the left pane of the Preferences dialog box, preferences appear for MATLAB tools as well as for any other MathWorks™ products installed on your system.
Choose a tool and click the + to display more preferences for that tool. From the expanded list, select the entry you want. The right pane shows the preferences for that item.
Change settings. Click Apply or OK to set the preferences. Preferences take effect immediately. They remain persistent across sessions of MATLAB.
Note that some tools allow you to control these settings from within the tool without setting a preference. Use that method if you only want the change to apply to the current session.
Open the Preferences dialog box using the preferences function.
Preference | What You Can Specify |
|---|---|
Toolbox path caching, figure window printing, delete function behavior, MAT-file save formats, confirmation dialogs, source control, and multithreaded computation. | |
Key bindings, tab completion, and delimiter matching for the Command Window and the Editor. | |
Font type, style, and size for desktop tools. Customize for any tool. | |
Colors for text, background, syntax highlighting, and hyperlinks in desktop tools. | |
| Show or hide M-Lint messages in the Editor M-Lint automatic code analyzer and in the M-Lint Code Check Report. | |
| Remove, add, and rearrange controls on the MATLAB and Editor toolbars. | |
Numeric format and display, accessibility, and tab size. | |
Display, filtering, and saving. | |
Editor type, startup options, display, tab size and indenting, language, including M-Lint messages, and autosave. | |
Product filter and synchronization. | |
Internet proxy server settings. | |
Number of entries in history and display options. | |
Numeric format, use of Enter key, and decimal separator. | |
| Statistical calculation options. | |
Display options for GUI-building tool. | |
Time Series Tools | Property Editor dialog and x-axes warning dialog. |
Application, text, line, uicontrols, axis, format, background color, and size. | |
Other products | Preferences for other installed MathWorks products. |
Preferences are stored in a preferences file, matlab.prf. Type prefdir in the Command Window to see the full pathname for the preferences directory that contains matlab.prf. The preference directory also contains related files.
On Apple® Macintosh® platforms, the directory might be in a hidden folder, for example, myname/.matlab/R2008a. To access the directory, select Go > Go to Folder in the Apple Mac OS® Finder. In the resulting dialog box, type the path returned by prefdir and press Enter.
The matlab.prf file is loaded when MATLAB starts and is overwritten when you close MATLAB.
The exact name of the preferences directory that MATLAB uses depends on the release. When you install a new version of MATLAB, MATLAB tries to use your existing preferences from the previous version, where possible. For more information on the preference directory filename and the preference migration process, see the reference page for prefdir.
![]() | Other Desktop Features | General Preferences for MATLAB® Application | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |