i installed matlab R2019b in my ubuntu. the installation process is completed. but when i try to open it through terminal it shows "matlab:command not found"Screenshot from 2019-12-25 09-24-20.png

 채택된 답변

Kojiro Saito
Kojiro Saito 2019년 12월 25일
편집: Kojiro Saito 2019년 12월 25일

13 개 추천

It's because your MATLAB installation directory is not added in your $PATH. Assuming the MATLAB installation directory is /usr/local/MATLAB/R2019b, you need to add the sub directory "bin".
If you have sudo privilege, create a symbolic link in /usr/local/bin.
sudo ln -s /usr/local/MATLAB/R2019b/bin/matlab /usr/local/bin/matlab
If you don't have sudo privilege, change your PATH environment dynamically.
export PATH=$PATH:/usr/local/MATLAB/R2019b/bin
It might be convinient to add path in your bashrc file.
vi ~/.bashrc
and add the export PATH command written above in bashrc.
Then, save the bashrc and reload.
source ~/.bashrc

댓글 수: 6

NANDHAN AEROSPACE
NANDHAN AEROSPACE 2019년 12월 25일
thanks.. it solved my issue
I did not understand this step: "add the export PATH command written above in bashrc." When I execute vi ~/.bashrc it takes me to a weird place. What to do?
Kojiro Saito
Kojiro Saito 2021년 6월 23일
It was because to launch MATLAB just typing matlab in Terminal without specifying full path /usr/local/MATLAB/R20XXa/bin/matlab.
By adding "export PATH=$PATH:/usr/local/MATLAB/R20XXa/bin" in bashrc, MATLAB installation directory is added to PATH.
LINA CASTRO
LINA CASTRO 2021년 8월 24일
¡Ayuda! Ingreso así como se indica en el paso y no logro solucionar el problema sigue apareciendo Error: 'matlab' ejecutable not found in PATH
Subhadip Datta
Subhadip Datta 2022년 9월 5일
이동: Kojiro Saito 2022년 9월 5일
How I can remove this again? It is making problem when reinstalling.
If you can use sudo, you can delete symbolic link under /usr/local/bin
sudo rm /usr/local/bin/matlab
If not, you can change .bashrc file.
vi ~/.bashrc
Then delete the line in .bashrc.
export PATH=$PATH:/usr/local/MATLAB/R2019b/bin
After saving .bashrc, reflect the change by the following.
source ~/.bashrc

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2019년 12월 25일

댓글:

2022년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by