ourMELONS/matlab/general/iconn.m
2019-12-16 16:47:21 +01:00

18 lines
482 B
Matlab

function iconn
% Change the icon of all open figures to match the figure number
%
% iconn
%
% See also: seticon
%
% In order to have this feature automatically on for all new figures
% execute the following command:
% set(0,'defaultfigurecreatefcn','iconn')
% You may want to insert it into your startup.m file
% Copyright 2000-2002, Research and Development
h = get(0,'children');
for i=1:min(length(h), 9)
seticon(i, which(sprintf('icon%d.ico', i)))
end