Home > functions > job > job_plot_meg_dir > job_plot_meg_close.m

job_plot_meg_close

PURPOSE ^

Close gui

SYNOPSIS ^

function job_plot_meg_close(inst_id, xclose)

DESCRIPTION ^

 Close gui

 --- Syntax
 function job_plot_meg_close(inst_id, xclose)

 --- Input
 inst_id : instance id of job_plot_meg
  xclose : closed by window 'x' button?  [optional]
           = true
           = false <<default>>

 --- History
 2009-01-06 rhayashi

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function job_plot_meg_close(inst_id, xclose)
0002 % Close gui
0003 %
0004 % --- Syntax
0005 % function job_plot_meg_close(inst_id, xclose)
0006 %
0007 % --- Input
0008 % inst_id : instance id of job_plot_meg
0009 %  xclose : closed by window 'x' button?  [optional]
0010 %           = true
0011 %           = false <<default>>
0012 %
0013 % --- History
0014 % 2009-01-06 rhayashi
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 if ~exist('xclose', 'var')
0020     xclose = false;
0021 end
0022 
0023 global vbmeg_inst;
0024 
0025 % set closed method
0026 vbmeg_inst.plotmeg{inst_id}.gui_cancel = xclose;
0027 
0028 fig = vbmeg_inst.plotmeg{inst_id}.h_fig;
0029 if ishandle(fig)
0030     delete(fig);
0031 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005