Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

startup - Startup file for user-defined options

Syntax

startup

Description

startup executes commands of your choosing when the MATLAB program starts.

Create a startup.m file in your MATLAB startup folder and put in the file any commands you want executed at MATLAB startup. For example, your startup.m file might include physical constants, defaults for Handle Graphics properties, engineering conversion factors, or anything else you want predefined in your workspace.

Algorithm

The MATLAB program executes the matlabrc.m file when it starts. matlabrc.m invokes startup.m, if it exists on the MATLAB search path.

You can extend this process to create additional startup files, if needed.

The MathWorks does not recommend modifying the matlabrc.m file, except perhaps by system administrators in network configurations.

See Also

finish, matlabrc, matlabroot, path, quit, userpath

See Specifying Startup Options Using the Startup File for the MATLAB Program, startup.m and Preferences in the MATLAB Desktop Tools and Development Environment documentation.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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