Changing Matlab icon of gui

Hello Everybody, How i can change the Matlab icon the appears in the left corner of matalb gui and put my icon ? Thanks All

Answers (1)

Walter Roberson
Walter Roberson on 27 Aug 2012
Doing that is against the Terms and Conditions of the MATLAB license.

4 Comments

how about purchasing the commercial license of matlab ? can i do that ? Thanks
Jan
Jan on 27 Aug 2012
Of course you can purchase a commercial license, but you still will not be allowed to modify the icon. This has been discussed repeatedly in this forum. One thread even contains the commands, which would perform the forbidden icon replacement.
function DetectSound_OpeningFcn(hObject, eventdata, handles, varargin)
warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
jFrame=get(handle(handles.figure1), 'javaframe');
jicon=javax.swing.ImageIcon('icon.gif');
jFrame.setFigureIcon(jicon);
After convert GUI to exe file, the Java icon that appears.
Did you solve it?

Sign in to comment.

Categories

Asked:

on 27 Aug 2012

Commented:

on 11 Jul 2019

Community Treasure Hunt

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

Start Hunting!