Changing GUI figure icon

조회 수: 6 (최근 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 CenterFile 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