MATLAB Installation Guide for Unix | ![]() ![]() |
Specifying MATLAB Startup Options
You can specify startup welcome messages, default definitions, or any MATLAB expressions that you want to run for all users. To do this, edit the M-file matlabrc.m
in $MATLAB/toolbox/local
, which is invoked automatically each time a user starts MATLAB.
For example, you can use this file to change the default paper size used for printing to A4. Open the file with any text editor and uncomment the line
set(0,'DefaultFigurePaperType','a4')
If you do not have write-access to matlabrc.m
, you can also create a file called startup.m
in the top-level MATLAB directory and include the preceding line in the file.
![]() | Specify Documentation Viewing Options | Configuring MATLAB Products | ![]() |