-ln links to wrong file
- by user289075
I've just installed matlab and want to be able to call it from the terminal. It works fine when I explicitly call it from its directory.
I cd to
/usr/local/bin
and type
sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab
when I then type "matlab" in the terminal, I get the error message "bash: /media/OS/MATLAB/bin/matlab: No such file or directory"
I have no idea why it's trying to call matlab from /media. I've tried deleting the file from usr/local/bin but when I create it again the same thing happens. Any help would be very much appreciated.