1. Changes in the upper left-hand corner of the GUI, assuming that the GUI tag is Figure1 and added in its OPENINGFCN
h = handles.figure1; % returns its handle
Newicon = Javax.swing.ImageIcon (' 1.jpg ')
Figframe = Get (H, ' javaframe '); % obtained figure of the javaframe.
Figframe.setfigureicon (Newicon); % Change Icon
%%% How to generate EXE files in the attachment
2. Change of icons in the upper left corner of the general graphics window
Clear
Newicon=javax.swing.imageicon (' 1.jpg ');
H=figure; % creates a figure and returns its handle
Figframe = Get (H, ' javaframe '); % obtained figure of the javaframe.
Figframe.setfigureicon (Newicon); % Change Icon
Http://www.ilovematlab.cn/thread-21915-1-1.html
Http://blog.sina.com.cn/s/blog_4d633dc70100nz7q.html
Matlab changes the GUI and figure in the upper left corner of the icon method, and generate EXE file