To generate a desktop entry for MATLAB (desktop environment XFCE and GNOME) after installation we generate a so called
*.desktop file in
~/.local/share/applications/ with the following content:
[Desktop Entry] Version=1.0 Type=Application Name=MATLAB Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop -softwareopengl & Icon=/usr/share/icons/matlab.png Categories=Office;Development Terminal=false
where we replace the path under Exec with the path pointing to the MATLAB executable. The MATLAB icon in this case was manually added.