Ubuntu系统包括两个快捷方式的路径:
坞站(dock)快捷方式的路径/usr/share/applications。

桌面快捷键的路径~/.local/share/applications。
将以下内容编辑为文件matlab.desltop,放置在两个路径(选一)
touch matlab.desktop

[Desktop Entry]
Name=matlab
Type=Application
Exec=/usr/local/matlab/R2022a/bin/matlab -desktop
Icon=/usr/local/matlab/R2022a/bin/glnxa64/cef_resources/matlab_icon.png
Terminal=false
Categories=Application;Matlab;
Comment=Scientific computing environment