install the matlab crack s/w
then replace the Crack folder — matlab 2018 — — bin folder to installed bin folder .
CRACK-Matlab2018-Bin to installedMatlab- bin
copy the licence_standalone.lic from Crack folder to creating new folder inside installed matlab folder folder name — licenses and put the licence_standalone.lic
#Now to run the matlab you have to go to installed matlab folder then bin directory .
sudo /home/sakib/Matlab/bin/matlab
########################################
Edit bashrc in ubuntu for matlab exectuable.
gedit ~/.bashrc
export MCR_ROOT=’/home/sakib/Matlab_Runtime/v91'
#export XAPPLRESDIR=$MCR_ROOT/v91/X11/app-defaults
#export LD_LIBRARY_PATH=$MCR_ROOT/v91/runtime/glnxa64:$MCR_ROOT/v91/bin/glnxa64:$MCR_ROOT/v91/sys/os/glnxa64:$MCR_ROOT/v91/sys/opengl/lib/glnxa64