Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Start MATLAB on Linux Platforms

To start MATLAB® on Linux® platforms, type matlab at the operating system prompt. If you did not set up symbolic links in the installation procedure, then type matlabroot/bin/matlab. matlabroot is the name of the folder in which you installed MATLAB. To see the folder, type matlabroot.

After starting MATLAB, the desktop opens. Desktop components that were open when you last shut down MATLAB reopen. If the DISPLAY environment variable is not set or is invalid, then the desktop does not display.

MATLAB automatically adds the userpath folder to the search path.

To customize startup, see Specify Startup Options.

The MATLAB startup folder is the folder you are in when you get the MATLAB prompt. To change the default startup folder, see MATLAB Startup Folder.

If you have trouble starting MATLAB, then see Troubleshooting Installation (Installation, Licensing, and Activation).

Startup Folder

On Linux platforms, the default startup folder is the folder from which you started MATLAB.

To specify the userpath as the startup folder, set the value of the environment variable MATLAB_USE_USERWORK to 1 before startup. By default, userpath is userhome/Documents/MATLAB. To specify a different folder for userpath, and for other options, call the MATLAB userpath function.

Execute MATLAB Script from Remote ssh Login

To execute a MATLAB script hello.m via a remote ssh login, in a terminal window type:

ssh local.foo.com matlab -nodisplay -nojvm < hello.m 

The ssh command pipes hello.m to MATLAB running on the remote host local.foo.com. The -nodisplay option starts MATLAB without the desktop.

See Also

| |

Related Topics

Was this topic helpful?