how to change compiled app icon (using app designer) on the app and windows taskbar

104 次查看(过去 30 天)
Could someone please help me to modify the default icon of MATLAB to custom icons on the compiled app using App Designer on both the app and the windows taskbar?
Please see the red square on the following figure which highlights the icons that I want to replace with custom icons.
thanks a lot!
Picture1.png
  8 个评论
PierreC
PierreC 2020-5-7
Could not find a way to do it either, still stuck with MatLab icon in the title bar and the win taskbar (Win10 as well).
Flying MatLab's colours is all very well but this still sucks : I'd love to be able to use different icons for different pop-ups or windows in my app...
Yang Yang
Yang Yang 2020-5-7
I'm negative on this and would not waste time digging into this.
My only hope is they would add this feature in one of their next releases.

请先登录,再进行评论。

采纳的回答

Roger Dettloff
Roger Dettloff 2021-4-29
Starting in R2020b we can use the UIFigue.Icon property, for example:
UIFigure.Icon = 'myicon.png'
See this answer here

更多回答(1 个)

Feng
Feng 2022-4-1
I have MatLab ver 2021b. You can change the default ICON like shown in this picture.
  6 个评论
Eric Delgado
Eric Delgado 2022-10-14
See code attached - put the image in the same folder of the app1.mlapp.
I still don't know how to treat the taskbar icon (Matlab icon). The taskmanager icon is from MatlabWindow.exe (the Matlab Runtime executable file that is called by your standalone app).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by