Installing MATLAB 2018a in Linux

1. Download MATLAB

Follow the website here:

First website

Second website

2. Install MATLAB by Commands

(1) In the download files directory, open a terminal and type

sudo mkdir /mnt/matlab
sudo mount -o loop R2018a_glnxa64_dvd1.iso /mnt/matlab
cd /mnt/
sudo ./mnt/matlab/install

Default installation path is /usr/local/MATLAB/R2018a/.

(2) After the installation process approaches about 60%, type

sudo mount -o loop R2018a_glnxa64_dvd2.iso /mnt/matlab

(3) Replace the files in /usr/local/MATLAB/R2018a/bin by the files in Crack.rar.

sudo cp -rvf R2018a/bin /usr/local/MATLAB/R2018a/

3. Launch MATLAB

Open MATLAB in directory /usr/local/MATLAB/R2018a/bin by typing

sudo ./matlab

Add the license in Crack.rar.

3.1 By Desktop Shortcut

Type

sudo gedit /usr/share/application/matlab.desktop

and write down the following codes in the file

[Desktop Entry]
Type=Application
Name=Matlab
GenericName=MATLAB
Comment=Matlab:The Language of Technical Computing
Exec=sh /usr/local/MATLAB/R2018a/bin/matlab -desktop
Icon=/usr/local/MATLAB/R2018a/toolbox/nnet/nnresource/icons/matlab.png
StartupNotify=true
Terminal=false
Categories=Development;Matlab;

Then go to application 'files' to search 'matlab', and drag the icon to the desktop.

If there is a message “The desktop configuration was not saved successfully” in matlab, then type

sudo chmod a+w -R /home/<username>/.matlab/R2018a

3.2 By Command

First add path by typing

export PATH=$PATH:/usr/local/MATLAB/R2018a/bin/

Then start MATLAB without desktop (only calculation)

matlab -nojvm -nodisplay -nosplash

If you want gcf support, try to use

matlab -nodesktop -nosplash

4. Add MATLAB to PATH

Type

sudo gedit ~/.bashrc

Add one sentence to the end

export PATH=$PATH:/usr/local/MATLAB/R2018a/bin/

This change is valid in every newly-opened terminal and can only be used by current user.

By the way, .file means hidden file, we can use 'ctrl+h' to show/hide these files.

5. Set Path in MATLAB

(1) Set MATLABPATH:

HOME=>ENVIRONMENT=>Set Path

Click add folder to add matlabpath permanently.

Same with addpath + savepath.

(2) Set USERPATH:

HOME=>ENVIRONMENT=>Preference

Click General and add userpath in Initial working folder.

Same with userpath.

Create a startup.m in userpath and this script runs everytime matlab starts.