I have installed a new version of MATLAB and would like to point the existing MATLAB launcher to:
/usr/local/MATLAB/R2016b/bin/matlab
What is the procedure to configure the launcher to point to the file?
Open a terminal (Ctrl+Alt+T) and type:
sudo nano /etc/environment
There, you have a list of paths from where binary/scripts are read. For example, if you initially had Matlab 2015a, it might look something like this:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:usr/local/MATLAB/R2015a/bin
You want to change the last path to pint to the new version (this is, replace R2015a
with R2016b
). Save (Ctrl+O), exit (Ctrl+X), and you are done.