写了一个更改的函数:
function chgicon(h,filename)
%CHGICON changes the figure icon.
%CHGICON(H,FILENAME) changes the icon of a figure to an image specified by
%the string FILENAME, where H is a handle to the figure. If the file is not
%in the current directory or in a directory in the MATLAB path