Changing GUI figure icon

10 ビュー (過去 30 日間)
Petr
Petr 2013 年 2 月 12 日
回答済み: Adam Danz 2025 年 7 月 11 日
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 日
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
Image Analyst
Image Analyst 2013 年 2 月 13 日
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 日
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')

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by