| MATLAB Function Reference | Search  Help Desk |
| startup | See Also |
Syntax
startup
Description
At startup time, MATLAB automatically executes the master M-filematlabrc.m and, if it exists, startup.m. On multiuser or networked systems, matlabrc.m is reserved for use by the system manager. The file matlabrc.m invokes the file startup.m if it exists on MATLAB's search path. You can create a startup file in your own MATLAB directory. The file can include physical constants, handle graphics defaults, engineering conversion factors, or anything else you want predefined in your workspace.
Algorithm
Onlymatlabrc.m is actually invoked by MATLAB at startup. However, matlabrc.m contains the statements
if exist(that invoke'startup')==2 startup end
startup.m. You can extend this process to create additional startup M-files, if required.
Remarks
You can also start MATLAB using options you define at the command line or in your Windows shortcut for MATLAB. See Chapter 2 of Using MATLAB for details.See Also
exist, matlabrc, path, quit