How can I run MATLAB from the Terminal in any drive?

1 view (last 30 days)
Hello, I have a problem with my Mac and MATLAB.
I need to run MATLAB form the Terminal and I nedd to do this from different drive, different from the installation drive of the program (Machintosh HD/Applications/MATLAB_R2018a.app/bin/matlab).
If I try to run Matlab in this drive with the command ./matlab, obviously it works but if I try from any other drive it doesn't. I find something about create an alias with the command
sudo ln -s /Applications/MATLAB_R2018a.app/bin/matlab matlab
but the result i got is
ln: matlab: File exists
How can I solve this problem?? Thank you very much for the help!

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!