阿里云盘下载链接:
https://www.alipan.com/s/uK4P9Q64yJT
1. 挂载镜像并开始运行 install 文件
cd ~ # 切换到home目录
sudo mkdir matlab # 创建一个文件夹,并命名为matlab
cd matlab #切换到matlab目录
sudo mount -t auto -o loop Matlab911R2021b_Lin64.iso # 挂载dvd,路径为iso镜像文件的路径
./install # 开始安装
-
Run “install” from mounted iso-file and if you see login/password/signin form (installer has access to internet)
then in upper right corner in “Advanced Options” select setup mode “I have a File Installation Key”
If internet access is absent then required setup mode will be auto-selected and you do not need to select in manually -
When you will be asked to “Enter File Installation Key” enter
62551-02011-26857-57509-64399-54230-13279-37181-62117-65158-40352-64197-45508-24369-45954-39446-39538-16936-10698-58393-44718-32560-10501-40058-34454 -
When you will be asked to “Select License File” select file “license.lic” from folder with Matlab911R2021b_Lin64.iso file
-
Then select folder where you want Matlab to be installed ()
To avoid problems you need which have all access rights for you
If it hard for you to select anything then use “/home//Matlab/R2021b” for example -
When you will be asked to “Select products” select components you need
If you all components are selected Matlab will need about 30Gb of disk space and somewhat longer startup time
If you select only “MATLAB” then Matlab will need about 3Gb of disk space
You better install Matlab on SSD disk for better startup time, so most likely you do not want to waste SSD-disk space for nothing -
After installation is done copy file “libmwlmgrimpl.so” from folder with Matlab911R2021b_Lin64.iso file
to ALREADY EXISTING FOLDER “\bin\glnxa64\matlab_startup_plugins\lmgrimpl”
WITH OVERWRITING OF EXISTING FILE ( - is where you have selected to install Matlab on step 4)
If you was NOT asked about overwriting then you are doing something wrong (or Matlab was not installed successfully)!!! -
Work with Matlab 😃
P.S.
During update/change of already working Matlab there is no need to execute step 3
Step 6 might be necessary to repeat (if during update/change of Matlab file “libmwlmgrimpl.so” was overwritten)
If after update/change you get error during startup of Matlab then first try to redo the step 6
2.创建桌面快捷方式
sudo vim /usr/share/applications/matlab.desktop
添加如下内容:
[Desktop Entry]
Version=R2021b
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=/usr/local/MATLAB/R2021b/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
其中版本以及Exec请根据自己的版本以及安装路径进行修改,其他保持默认即可。添加后就可以在桌面菜单搜索到了.