How do I run MATLAB from the mac terminal?
412 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Cristian Sanchez Montesinos
am 3 Feb. 2019
Kommentiert: Marco cazzaniga
am 16 Feb. 2023
I am trying to run MATLAB from the mac OS X terminal. I'm using macOS Mojave version 10.14.2, and MATLAB R2018b. What I'm doing is:
- I open the terminal
- Go to /Applications
- pe MATLAB_R2018
However, I get the following:
-bash: MATLAB_R2018b: command not found
Can someone help me with this?
Thanks.
0 Kommentare
Akzeptierte Antwort
Ken Atwell
am 4 Feb. 2019
I do this:
open /Applications/MATLAB_R2018b.app/
Weitere Antworten (2)
Walter Roberson
am 5 Feb. 2019
alias matlab="/Applications/MATLAB_R2018b.app/bin/matlab -nojvm -nodesktop"
I put the above in my ~/.bash_profile
3 Kommentare
Walter Roberson
am 9 Feb. 2019
Yes. If you are using the default bash shell then when you start an interactive session the .bash_profile in your home directory is sourced. The command I show sets up a command named matlab to launch r2018b in terminal mode. It can be invoked by that name from the terminal no matter where you are cd to . It is effectively a shortcut for typing in the right hand side.
Peiwei Liu
am 20 Okt. 2021
In terminal on mac, type this:
/Applications/Polyspace/R2019b/bin/matlab; exit;
Please adjust this to your own path. Works!
1 Kommentar
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!