MATLAB shortcut creation (LINUX system ubuntu20.04)

After MATLAB is installed, if you want to create a shortcut on the desktop, you can do this:

1 Edit shortcut

Ctrl+Alt+T, copy the following to the terminal:

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

Write the following content: (Note that line 4 is changed to the corresponding version, and the XXXXXXX part is changed to your own installation path)

The default path is shown in the figure

 Then the content of matlab.desktop is:

[Desktop Entry]
Type=Application
Name=Matlab
GenericName=Matlab 2021a
Comment=Matlab:The Language of Technical Computing
Exec=/usr/local/MATLAB/R2021a/bin/matlab -desktop
Icon=/usr/local/MATLAB/R2021a/toolbox/shared/hwconnectinstaller/resources/MatlabIcon.png
Terminal=false
Categories=Application;Matlab;

2. Start matlab

Ctrl+Alt+T, copy the following to the terminal, you can see the shortcut in the corresponding folder, copy to the desktop and double-click to start

cd  /usr/share/applications/matlab.desktop

Guess you like

Origin blog.csdn.net/weixin_47296493/article/details/129538244