Filter löschen
Filter löschen

Why is my MATLAB able to open my GUI application but unable to run it as a command in my Unix Shell?

4 Ansichten (letzte 30 Tage)
This happens to be a new problem because I was able to run MATLAB on the shell until today. I didn't install or update it or anything of that sort, but now I am unable run matlab in the sell. It tells me:
brandomiranda~ $ matlab
bash: matlab: command not found
this seems weird to me but maybe my path was reset or something. I think I could eventually find where the binaries are and make my path point to it but it seems that I shouldn't have to do that. What do people recommend me to do?
I have MATLAB R2015a for academic license.

Antworten (1)

Kiran
Kiran am 9 Feb. 2016
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/R2009b
then launch MATLAB using the following command:
user@host$> ./matlab
This error indicates that there is either no symbolic link to MATLAB or MATLAB's bin folder is not set on the system's PATH. In order to use the command "MATLAB" to start MATLAB on Linux, either MATLAB's bin folder must be included in the PATH environment variable, or there must be a link to the "MATLAB" script on the PATH.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by