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

4 次查看(过去 30 天)
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.

回答(1 个)

Kiran
Kiran 2016-2-9
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.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by