How to replace MATLAB icon from a figure window?

83 views (last 30 days)
Vieniava
Vieniava on 30 Jan 2011
How to replace or delete the MATLAB icon (the peaks) from a figure window?
  1 Comment
Bruno Luong
Bruno Luong on 30 Jan 2011
Replacing or altering figure icons violates Matlab license agreement.

Sign in to comment.

Accepted Answer

Paulo Silva
Paulo Silva on 30 Jan 2011
replace FIGUREHANDLE with your figure handle, test with gcf
replace PATH with the path, name and extension of the icon for example
C:\Program Files (x86)\MATLAB\R2008b\toolbox\systemtest\systemtest\icons\StopElement.gif
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
jframe=get(FIGUREHANDLE,'javaframe');
jIcon=javax.swing.ImageIcon('PATH');
jframe.setFigureIcon(jIcon);

More Answers (1)

Siddharth Shankar
Siddharth Shankar on 30 Jan 2011
As Bruno says, that would be a breach of the MathWorks license agreement. Specific details here:
  4 Comments
Vieniava
Vieniava on 31 Jan 2011
Jan Simon, thanks. I think this is too rigid, especially when someone has got commercial license for Matlab/Compiler and sells own software.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!

Translated by