-bash: matlab: command not found

10,420

Solution 1

Try

cd /Applications/MATLAB_R2015b.app/bin/

and then

./matlab

If that, hopefully, works, then you may have a path or environment issue with your O/S which is preventing your call to /Applications/MATLAB_R2015b.app/bin/matlab from working.

Solution 2

add the installation directory to the PATH environment, for example:

export PATH=/Applications/MATLAB_R2017b.app/bin/:$PATH

then launch Matlab with

matlab

in your terminal

Share:
10,420
Alessandro
Author by

Alessandro

Updated on June 18, 2022

Comments

  • Alessandro
    Alessandro almost 2 years

    I am a bit surprised, but I can't run matlab by the terminal of my Mac. I am trying the command

    /Applications/MATLAB_R2015b.app/bin/matlab
    

    but I get the error

    -bash: matlab: command not found
    

    Listing the contenents of the folder /Applications/MATLAB_R2015b.app/bin/ I can see the word matlab which is supposed to be the executable. I don't know what's happening.