필터 지우기
필터 지우기

Matlab -nojvm

조회 수: 10 (최근 30일)
Yavuz kaya
Yavuz kaya 2012년 3월 21일
답변: Bob White 2020년 10월 20일
I am using a MAC, and I have a problem starting up Matlab on terminal using the command "matlab -nojvm".
I get the following error:
matlab: Command not found.
Even I type "matlab" on terminal I get the same error.
Do you have any idea why this is happening?
Thanks,
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 3월 21일
Just curious if you mean -nojvm or -nodesktop? I cannot think why you would want the desktop without jvm (or even if it is possible).

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

채택된 답변

Jan
Jan 2012년 3월 21일
Is the parent folder of the Matlab executable included in the PATH?
You can put a symbolic link to the Matlab binary in your path:
sudo ln -s /Applications/MATLAB_R<xyz>.app/bin/matlab /usr/local/bin
Or include the folder in the PATH:
export PATH=$PATH:/path/to/matlab
or use the full path in the call:
$ /path/to/matlab
  댓글 수: 1
Daniel Shub
Daniel Shub 2012년 3월 21일
After my comment in a related question, I probably shouldn't be asking this, but do Macs have /usr/local/bin and is it automatically on the path?

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

추가 답변 (1개)

Bob White
Bob White 2020년 10월 20일
The accepted answer was close, but not right.
The correct code:
/Applications/MATLAB_R<yyyya|b>.app/bin/matlab -nojvm
Note: You can only use Matlab in Terminal when using -nojvm. Also, "a|b" means a or b depending on your version.
To close MATLAB after using "-nojvm":
exit
Bonus: You can make terminal give all uses (and their definitions) for "/Applications/MATLAB_R<yyyya|b>.app/bin/matlab" with
/Applications/MATLAB_R2020b.app/bin/matlab -help

카테고리

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