Skip to Main Content Skip to Search
Product Documentation

matlabrc - Startup file for MATLAB program

Description

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 any messages, definitions, or other code that applies to all users in their matlabrc.m file.

The file matlabrc.m invokes the startup.m file, if it exists on the search path MATLAB uses.

Individual users should use the startup.m file to customize MATLAB startup. The matlabrc.m file is reserved for system administrators.

Algorithms

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

if exist('startup') == 2
    startup
end

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

Tips

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

Examples

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

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

See Also

matlabroot | quit | restoredefaultpath | startup

How To

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS