MATLAB: Matlab -nojvm

mac

I am using a MAC, and I have a problem starting up Matlab on terminal using the command "matlab -nojvm".
I get the following error:
matlab: Command not found.
Even I type "matlab" on terminal I get the same error.
Do you have any idea why this is happening?
Thanks,

Best Answer

Is the parent folder of the Matlab executable included in the PATH?
You can put a symbolic link to the Matlab binary in your path:
sudo ln -s /Applications/MATLAB_R<xyz>.app/bin/matlab /usr/local/bin
Or include the folder in the PATH:
export PATH=$PATH:/path/to/matlab
or use the full path in the call:
$ /path/to/matlab
Related Question