| MATLAB® | ![]() |
startup
startup automatically executes the master M-file matlabrc.m and, if it exists, startup.m, when the MATLAB program starts. 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 the search path MATLAB uses. You can create a startup.m file in your own startup directory for MATLAB. The file can include physical constants, defaults for Handle Graphics properties, engineering conversion factors, or anything else you want predefined in your workspace.
At startup, MATLAB only runs matlabrc.m. However, matlabrc.m contains the statements
if exist('startup')==2
startup
end
that run startup.m. You can extend this process to create additional startup M-files, if needed.
finish, matlabrc, matlabroot, path, quit, userpath
See Startup Options and Preferences in the MATLAB Desktop Tools and Development Environment documentation.
![]() | startat | std | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |