Changing GUI figure icon

Hi,
I have a question about changing a GUI figure icon. I know that if I do that I would violate Matlab terms...but would it be posible to add my custom icon next to the Matlab icon so that both sides (me as a user and Matlab) were OK?
Thanks, Peter

 采纳的回答

Image Analyst
Image Analyst 2013-2-13

0 个投票

If you compile your program, you can:
How do I associate a custom icon with an EXE compiled with the MATLAB Compiler

2 个评论

Petr
Petr 2013-2-13
编辑:Petr 2013-2-13
So you're saying that I can only change the icon of the compiled EXE file but not the icon in the figure...So when I see my program it will have my icon but when I run it it will still have Matlab icon...is that right? Maybe I didnt get it properly...
Thanks, Peter
I don't recall. I'd have to check, but you can do that as well as I can.

请先登录,再进行评论。

更多回答(1 个)

Adam Danz
Adam Danz 2025-7-11

1 个投票

The Icon property has been available in a uifigure since since R2020b and it became available in regular figures in R2025a.
fig = figure('Icon','peppers.png')

类别

帮助中心File Exchange 中查找有关 Debugging and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by