matlab installation in linux ubuntu
586 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
NANDHAN AEROSPACE
le 25 Déc 2019
Commenté : Kojiro Saito
le 5 Sep 2022
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"
0 commentaires
Réponse acceptée
Kojiro Saito
le 25 Déc 2019
Modifié(e) : Kojiro Saito
le 25 Déc 2019
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 commentaires
Subhadip Datta
le 5 Sep 2022
Déplacé(e) : Kojiro Saito
le 5 Sep 2022
How I can remove this again? It is making problem when reinstalling.
Kojiro Saito
le 5 Sep 2022
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!