execution indicator graph. history 2001-11-16 S.Kajihara Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function exe_count(gname,nall) 0002 % execution indicator graph. 0003 % 0004 % 0005 % history 0006 % 2001-11-16 S.Kajihara 0007 % 0008 % Copyright (C) 2011, ATR All Rights Reserved. 0009 % License : New BSD License(see VBMEG_LICENSE.txt) 0010 0011 global hec nexe; 0012 0013 if nall==0, hec=[]; return; end 0014 0015 if isempty(hec), 0016 hec=figure('Position',[0,0,150,150],'MenuBar','none','NumberTitle','off','Name',gname); 0017 nexe=0; 0018 end 0019 0020 nexe=nexe+1; 0021 if nexe>nall-1, 0022 close(hec); hec=[]; 0023 return; 0024 end 0025 0026 set(0,'CurrentFigure',hec); 0027 pie(nexe/nall); drawnow; 0028