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. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Start up file for MATLAB program


At startup time, MATLAB® automatically executes the file matlabrc.m. This function establishes the MATLAB path, sets the default figure size, and sets 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.m file.

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


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.m file. Alternatively, create a similar line in your own startup.m file.

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


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


MATLAB invokes matlabrc at startup. matlabrc.m contains the statements

if exist('startup') == 2

that invokes startup.m, if it exists. Extend this process to create additional startup files, if necessary.

Was this topic helpful?