Start MATLAB program from Linux system prompt
matlab
matlab option1 ... optionN
matlab
is a Bourne shell script that starts
the MATLAB® program from a Linux® system prompt. Here the
term matlab
refers to this script and MATLAB refers
to the program.
The matlab
script:
Determines the MATLAB root folder, the value
returned by the matlabroot
function.
Processes command-line options, if any.
Reads the MATLAB startup file, .matlab7rc.sh
.
Sets MATLAB environment variables.
matlab
starts MATLAB with
the specified startup options.option1 ... optionN
Alternatively, assign startup options in the MATLAB .matlab7rc.sh Startup File. Modifying the .matlab7rc.sh
file
defines startup options every time you start MATLAB.
MATLAB uses the Java® Virtual Machine (JVM™) software
to run the desktop and to display graphics. The -nojvm
option
allows you to start MATLAB without the JVM. Using this option
minimizes memory usage and improves initial startup speed, but restricts
functionality.
The .matlab7rc.sh
shell
script contains variable definitions used by the matlab
script.
Use the .matlab7rc.sh
file to redefine variables
defined in the matlab
script. matlab
looks
for the first occurrence of .matlab7rc.sh
in the:
Current folder
Home folder ($HOME)
matlabroot
/bin
folder
To edit the .matlab7rc.sh
file, use the template
located in the matlabroot
/bin
folder.
This table lists the variables. For more information, see the
comments in the .matlab7rc.sh
file.
Variable | Definition and Standard Assignment Behavior |
---|---|
| The machine architecture. MATLAB checks for a valid architecture in this order:
|
| The host name of the X Window display MATLAB uses for output. The value of |
| Final Load library path. The final value
is normally a colon-separated list of four sublists, each of which
could be empty. The first sublist is defined in |
| The MATLAB root folder. MATLAB uses
the default computed by the script unless Currently |
| The MATLAB search path. The final value
is a colon-separated list with the |
| The shell to use with the MATLAB " The
default |
| The shell to use instead of Use
an absolute path for the value of The
default |
| The path of the toolbox folder. A nonempty
value in the environment is used first. Otherwise, |
The matlab
script determines the path of
the MATLAB root folder by looking up the folder tree from the matlabroot
/bin
folder
(where the matlab
script is located). MATLAB use
the MATLAB
variable to locate all files within
the MATLAB folder tree.
You can change the definition of MATLAB
.
For example, change the definition if you want to run a different
version of MATLAB. Or change the definition if your system uses
certain types of automounting schemes and the path determined by the matlab
script
is not correct.