Why isn't the MATLAB command just available in the terminal for OS X?

조회 수: 1 (최근 30일)
Brando Miranda
Brando Miranda 2017년 12월 11일
답변: Walter Roberson 2017년 12월 14일
I was to use the matlab command in the terminal and it seems I have to do extra stuff for it to be available. How can it "just be available" without me needing to do extra stuff?

답변 (1개)

Walter Roberson
Walter Roberson 2017년 12월 14일
In my ~/.bash_profile I stored
alias matlab="/Applications/MATLAB_R2017a.app/bin/matlab -nojvm -nodesktop"
If you prefer, you could create /usr/local/bin/matlab with content
#!/bin/ksh
/Applications/MATLAB_R2017a.app/bin/matlab -nojvm -nodesktop
and chmod +x /usr/local/bin/matlab

카테고리

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