| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
At startup time, MATLAB automatically executes the master M-file matlabrc.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 the search path MATLAB uses.
As an individual user, you can create a startup file in your own MATLAB directory. Use the startup file to define physical constants, engineering conversion factors, graphics defaults, or anything else you want predefined in your workspace.
Only matlabrc is actually invoked by MATLAB at startup. However, matlabrc.m contains the statements
if exist('startup') == 2
startup
end
that invoke startup.m. Extend this process to create additional startup M-files, if required.
You can also start MATLAB using options you define at the Command Window prompt or in your Microsoft Windows shortcut for MATLAB.
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')
matlabroot, quit, restoredefaultpath, startup
Startup Options in the MATLAB Desktop Tools and Development Environment documentation
![]() | matlabcolon (matlab:) | matlabroot | ![]() |

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 |