This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

matlabrc

Start up function for MATLAB program

Description

At startup, MATLAB® automatically executes the matlabrc function and then, if it exists, the startup function. The matlabrc function sets the default figure size and some uicontrol defaults.

On multiuser or networked systems, system administrators can put messages, definitions, or other code that applies to all users in their matlabrc file.

For individual systems, use startup to customize MATLAB startup. Put this function in the userpath folder. The matlabrc function, located in the matlabroot/toolbox/local folder, is reserved for system administrators.

Examples

Turn Off Figure Window Toolbar

If you do not want the toolbar to appear in the figure window, remove the comment marks from the following line in the matlabrc file. Alternatively, create a similar line in your own startup file.

%   set(0,'defaultfiguretoolbar','none')

Tips

You also can start MATLAB using options that you define at the command prompt or in your Microsoft® Windows® shortcut for MATLAB.