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

1 Ansicht (letzte 30 Tage)
Brando Miranda
Brando Miranda am 11 Dez. 2017
Beantwortet: Walter Roberson am 14 Dez. 2017
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?

Antworten (1)

Walter Roberson
Walter Roberson am 14 Dez. 2017
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

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by