How to replace MATLAB icon from a figure window?
显示 更早的评论
How to replace or delete the MATLAB icon (the peaks) from a figure window?
1 个评论
Bruno Luong
2011-1-30
Replacing or altering figure icons violates Matlab license agreement.
采纳的回答
更多回答(2 个)
Siddharth Shankar
2011-1-30
4 个投票
As Bruno says, that would be a breach of the MathWorks license agreement. Specific details here:
4 个评论
Jan
2011-1-30
Why is this icon so important for MathWorks? Does this concerns Java windows opened from Matlab also? And if I maximize a figure such that the just the innerposition fill the complete screen and the titlebar is not visible anymore?
Siddharth Shankar
2011-1-30
Jan, I can't interpret the license agreement in more detail than what is outlined in that solution. If a request is made to MathWorks technical support with those questions, I am sure they will be able to provide some answers (likely after consulting the MathWorks legal team).
Vieniava
2011-1-31
Vieniava
2011-1-31
This answer is pretty old and I've bumped into it a few times, so for the sake of new users,
here's how its done. (BTW, I'm assuming a UI figure).
fig = uifigure("WindowStyle","alwaysontop");
fig.Position = [500 500 1000 445];
pathToMLAPP = fileparts(mfilename('fullpath'));
fig.Icon = fullfile(pathToMLAPP, 'my_icon.png');
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!