1、进入目录
cd /usr/share/applications
2、建立并编辑图标文件
sudo touch matlab.desktop
sudo vim matlab.desktop,将以下内容输入并保存:
#!/usr/bin/env xdg-open [Desktop Entry] Name=matlab Type=Application Exec=/usr/local/Polyspace/R2021a/bin/matlab -desktop Icon=/usr/local/Polyspace/R2021a/bin/glnxa64/cef_resources/matlab_icon.png Terminal=False Comment=Scientific computing environment
3、建立快捷方式
ln -s /usr/share/applications/matlab.desktop /home/nication/.桌面/