Ubuntu下给Matlab建立快捷方式

我在Ubuntu下是用的默认安装的,路径为/usr/local/MATLAB/R2010b

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

  写入以下内容

  [Desktop Entry]

  Type=Application

  Name=Matlab

  GenericName=Matlab 2010b

  Comment=Matlab:The Language of Technical Computing

  Exec=sh /usr/local/MATLAB/R2010b/bin/matlab -desktop

  Icon=/usr/local/MATLAB/Matlab.png

  Terminal=false

  Categories=Development;Matlab;

  图片

      图片为png格式,是透明背景的哦,Linux可不像Windows,是支持透明背景的,貌似任何不太大的图片都可以作为图标使用。

  这样,你就可以在左上角的Application菜单中的Office目录下找到Matlab啦。

  你还可以在顶栏条处点右键选择”增加到面板“,然后选择“载入程序“,在Office目录下选择Matlab。Matlab的快捷方式就出现在顶栏啦!

  下次启动Matlab,只需要一键点击落~爽!

If you wanna use matlab in linux and you don’t like start a terminal to run matlab every time, then this is the text file you need to type:

[Desktop Entry]
Version=1.0
Name=Matlab
GenericName=Matlab
Comment=Matlab:The Language of Technical Computing
Exec=/usr/local/MATLAB/R2010b/bin/matlab -desktop
Icon=/home/sun/.icons/matlab.png
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;Development

And you need to save the file here:

/usr/share/applications/matlab.desktop

Finally, it would be the best if you can find a matlab icon and save it somewhere you prefer. (in my case, Icon=/home/sun/.icons/matlab.png)
A possible option is this one:

原文地址:https://www.cnblogs.com/math2010/p/2373803.html