How do I launch MATLAB on Linux?

조회 수: 4,807(최근 30일)
MathWorks Support Team
MathWorks Support Team 2010년 11월 29일
댓글: Sergey Solomatin 2021년 11월 6일 16:02
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 2018년 10월 12일
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:
then launch MATLAB using the following command:
user@host$> ./matlab
See the Documentation for additional information about starting MATLAB on Linux:
  댓글 수: 16
Benjamin Stadler
Benjamin Stadler 2018년 10월 6일
If you're tiered of typing the entire path each time, you can simply add the matlab bin to your PATH variable as described here:
Note: The bin is located for me (Ubuntu 18.04, default installation) under

댓글을 달려면 로그인하십시오.

추가 답변(6개)

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.
  댓글 수: 13
Walter Roberson
Walter Roberson 2021년 9월 14일
dpkg is used to install things.
You might need to sudo whatever you were doing, once, to allow it to install whatever it is trying to install.

댓글을 달려면 로그인하십시오.

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.
  댓글 수: 4
Carlos De Castro
Carlos De Castro 2021년 2월 26일
Thank you very much, this worked perfectly, I love you!

댓글을 달려면 로그인하십시오.

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
  댓글 수: 4
Sergey Solomatin
Sergey Solomatin 2021년 11월 6일 16:02

댓글을 달려면 로그인하십시오.

Revanth Bhattaram
Revanth Bhattaram 2018년 3월 29일
편집: MathWorks Support Team 2018년 4월 5일
Step 1. go to terminal and type : matlab if it don"t work and
Step 2a: user@host$> cd <your installation path>/bin where <your installation path> is your installation directory Step 2b: user@host/<your installation path> /bin $> ./matlab
if it works then you can create a path in bash.bashrc file found in /etc folder open it using gksudo or any other editor as sudo, paste export PATH=$PATH:<your installation path> for example export PATH=$PATH:/usr/local/MATLAB/R2017b/bin/
save and exit. now if you enter matlab in terminal, it should launch.
  댓글 수: 1
RITIKA JAIN 2019년 5월 23일
Thanks a lot. It worked !!

댓글을 달려면 로그인하십시오.

Diamond Fianka
Diamond Fianka 2017년 5월 5일
thank, it works @ command promt enter matlab

Michael Levy
Michael Levy 2018년 4월 24일
편집: Michael Levy 2018년 4월 24일
Apparently, the first thing to do is to type the following 6 letters at the command prompt:
  댓글 수: 2
Gerrik Labra
Gerrik Labra 2020년 12월 27일
furthermore, I was running MATLAB 2020b

댓글을 달려면 로그인하십시오.



Community Treasure Hunt

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

Start Hunting!

Translated by