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

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 Comments

in the application compiler, you can click the small icon next to application name field to select a custom icon. This will change the taskbar icon. However on windows 10 i notice, the displayed icon does not change.
Thank you Mohammad.
I have actually found that button you replied in your email and it never worked.
As you mentioned my OS is win 10 and I never got to test it in win 7 or any older system since we recently upgraded all the computers to win 10.
Do you have any idea if this will be addressed by MATLAB or other workaround?
Hi Yang, I have your same problem. Were you able to solve?
Thank you
hi Alberto,
No, i didn't get this problem resolved.
Please see my previous reply, I'm using win10 and it seems Matlab has to solve this bug still.
Are you using win 10 as well?
Hi Yang,
yes I have Windows 10 (latest update) and Matlab 2020a. I have to release the executable soon, and it's really bad to have it without a custom icon. I hope they resolve soon.
At least for pre-appdesigner apps, there was never a capability to change that icon. I doubt TMW would have changed that for newer appdesigner apps, especially if you consider that web apps used to have an unremovable "MATLAB" banner taking up significant screen realestate. They want you to know you (and your customers) are using their product :)
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...
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.

Sign in to comment.

 Accepted Answer

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

More Answers (1)

I have MatLab ver 2021b. You can change the default ICON like shown in this picture.

6 Comments

Hello Mr Feng!
I have tried to do that update on the icon, changed the property as well (UIFigure.Icon = 'myicon.png') but it doesn't seem to work.
Could you please send some screenshot with the final result or with further information?
Thanks in advance!
Hey guys... do you have a solution for this issue? It looks like the "Icon" property only control the icon of the figure, not the showed icons on the taskbar and task manager.
@Asier Rodriguez, maybe it's a problem of path. Put your icon image as requered files (on Compiler).
Could you deliver some screenshots with this update's results? Have you tried to insert the icon within the corresponding path?
Thx in advance!
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).
Thank you very much anyway. I will try myself to search further and let you know!

Sign in to comment.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2019b

Community Treasure Hunt

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

Start Hunting!