Home > functions > gui > project_mgr_dir > project_mgr_init_ix_for_check_model.m

project_mgr_init_ix_for_check_model

PURPOSE ^

initialize index for check model.

SYNOPSIS ^

function project_mgr_init_ix_for_check_model(fig)

DESCRIPTION ^

 initialize index for check model.
 [USAGE]
    project_mgr_init_ix_for_check_model(<fig>);
 [IN]
    fig : figure handle of project_mgr gui.
 [OUT]
    none

 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 project_mgr_init_ix_for_check_model(fig)
0002 % initialize index for check model.
0003 % [USAGE]
0004 %    project_mgr_init_ix_for_check_model(<fig>);
0005 % [IN]
0006 %    fig : figure handle of project_mgr gui.
0007 % [OUT]
0008 %    none
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('fig', 'var') || isempty(fig) || ~ishandle(fig)
0017     error('invalid figure handles is specified.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 
0024 % load data (@see project_mgr)
0025 data = guidata(fig);
0026 
0027 % rememeber index of last selected parameter.
0028 data.parm_ix_for_check_model = zeros(3, 1); % ix 1: last selected brain_parm
0029                                             %    2: last selected fmri_parm
0030                                             %    3: last selected meg_parm
0031 % save data
0032 guidata(fig, data);

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