Find instance ID Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function inst_id = job_plot_meg_get_inst_id(h_fig) 0002 % 0003 % Find instance ID 0004 % 0005 % 0006 % Copyright (C) 2011, ATR All Rights Reserved. 0007 % License : New BSD License(see VBMEG_LICENSE.txt) 0008 0009 global vbmeg_inst; 0010 0011 for inst_id=1:vbmeg_inst.const.PLOTMEG_MAX 0012 if ~isempty(vbmeg_inst.plotmeg{inst_id}) & ... 0013 vbmeg_inst.plotmeg{inst_id}.h_fig==h_fig, return; 0014 end; 0015 end 0016