Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

startup

Start up 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 a folder on the MATLAB search path. Add commands you want executed at startup. For example, your startup.m file might include physical constants, defaults for graphics properties, engineering conversion factors, or anything else you want predefined in your workspace.

More About

collapse all

Tips

  • To specify the current folder in MATLAB when it starts, set the Initial working folder preference, described in General Preferences.

Algorithms

At startup, MATLAB automatically executes the file matlabrc.m and, if it exists on the MATLAB search path, startup.m. The file matlabrc.m, which is in the matlabroot/toolbox/local folder, is reserved for use by MathWorks® and by system administrators on multiuser systems.

Was this topic helpful?