Why is my MATLAB able to open my GUI application but unable to run it as a command in my Unix Shell?
조회 수: 3 (최근 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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!