フィルターのクリア

How do I launch MATLAB on Linux?

1,685 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2010 年 11 月 29 日
編集済み: MathWorks Support Team 2024 年 4 月 19 日
I've completed the installation and activation of MATLAB on a Linux computer. How do I launch the application?

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 4 月 19 日
編集済み: MathWorks Support Team 2024 年 4 月 19 日
MATLAB must be launched from the command line on Linux.
If you completed installation as root user, you may have had the option to install symbolic links to MATLAB in a folder on your system path. If you selected to install these links you can launch MATLAB from the command line, regardless of current working directory, by typing the command:
user@host$> matlab
If this does not work, or if you did not install the symbolic links during installation, you must launch MATLAB by specifying the full path to the MATLAB start script:
user@host$> cd $MATLABROOT/bin
where $MATLABROOT is the full path to your MATLAB installation directory, ex:
/usr/local/matlab/R2024a
then launch MATLAB using the following command:
user@host$> ./matlab
 
You may also create a symbolic link to MATLAB post-installation as the root user with the following command, assuming you're using R2024a:
sudo ln -s /usr/local/MATLAB/R2024a/bin/matlab /usr/local/bin/matlab
 
See the Documentation for additional information about starting MATLAB on Linux:
Start MATLAB on Linux Platforms
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 7 月 3 日
sudo ln -s /Applications/MATLAB_R2018a.app/bin/matlab /usr/local/bin/matlab
provided that /usr/local/bin is on your path, which might not be the case in OS-X.
Walter Roberson
Walter Roberson 2018 年 7 月 12 日
/usr/local/bin/matlab might already exist on Linux, as Linux has an option to create the symbolic links.
Either way, if it exists, then you might need to update it if it is referring to an older version of MATLAB.
ls -ld /usr/local/bin/matlab
If the output starts with 'd' then it is a directory and should not be removed without further investigation. If it starts with '-' then it is an ordinary file and should not be removed without further investigation. If it starts with 's' then it is a symbolic link, and the ls output will show you want it is currently linked to; in this case to update it
sudo rm /usr/local/bin/matlab
followed by the sudo ln

サインインしてコメントする。

その他の回答 (3 件)

Mika Mäki
Mika Mäki 2019 年 5 月 8 日
編集済み: Mika Mäki 2019 年 5 月 8 日
For Ubuntu (and its variants) there is the package matlab-support, which creates a shortcut for MATLAB in the launcher and applies a few bugfixes created by the community. You can install it with
sudo apt install matlab-support
You might also want to have a look at the Matlab page of official Ubuntu documentation and this thread.

Ish Jain
Ish Jain 2021 年 4 月 7 日
To create a shortcut for matlab in Linux Ubuntu:
1. Open bashrc file located in ~/.bashrc in your favourite editer, e.g. vim
$ vim ~/.bashrc
2. Add matlab alias (copy the line towards the end of bashrc file)
alias matlab="/usr/local/MATLAB/R2021a/bin/matlab"
Make sure to use the correct path based on Matlab version
3. Source the bashrc file
$ source ~/.bashrc
4. Now to open matlab, just type on terminal
$ matlab

Marcos Rogério Fernandes
Marcos Rogério Fernandes 2017 年 11 月 1 日
You can also make a shortcut (at least on Ubuntu) using gnome-panel like that:
sudo apt-get install gnome-panel (only if you don't already has installed)
sudo gnome-desktop-item-edit /usr/share/applications/ --create-new
So, into window that will appear for you, set the properties like below:
And then, will be in your applications menu a icon like that:
That way, you can run the Matlab direct from menu, also can add to dock.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by