Mint: install and configure MATLAB
installation:
- installation
- download matlab iso files
- mount first cd
- run the installer (install.sh or similar) from within $HOME:
$ cd $HOME; /path/to/cd1/install.sh
- choose the install path:
/opt/MATLAB
- when asked for second cd one has to unmount cd1 and mount cd2 to the same path
- put matlab in your $PATH:
- usually this is done in the installation process, but just in case
$ sudo ln -s /opt/MATLAB/R2017a/bin/matlab /usr/local/bin/matlab
- get the desktop file for matlab (somewhere in the opt/matlab folder?)
- [code language="bash" collapse="true" padlinenumbers="true" title="cat matlab.desktop"]
$ cat /usr/share/app-install/desktop/matlab-support:matlab.desktop
[Desktop Entry]
X-AppInstall-Package=matlab-support
X-AppInstall-Popcon=4
X-AppInstall-Section=multiverseVersion=1.0
Type=Application
Terminal=false
Exec=matlab -desktop
Name=MATLAB
Icon=/usr/share/icons/matlab.png
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
StartupWMClass=com-mathworks-util-PostVMInitX-Ubuntu-Gettext-Domain=app-install-data
[/code]
- [code language="bash" collapse="true" padlinenumbers="true" title="cat matlab.desktop"]
- for updating matlab
- install as in step 1
- change the link path from step 2
- done
- change the default start of matlab by creating a custom
startup.m
:- print the path inside of the matlab gui: >> path
- choose a good path for your file (usually:
/opt/MATLAB/R2017a/toolbox/local/startup.m
or~Documents/MATLAB/startup.m
) - insert some matlab code. example:[code language="matlab" collapse="true" padlinenumbers="true" title="cat startup.m"]
fname='/some/path';
addpath(genpath(fname));
cd(fname);
clear fname;
[/code]