Home > functions > job > job_edit_act_dir > job_edit_act_registration.m

job_edit_act_registration

PURPOSE ^

Store activity map to cortical activity file (.act.mat)

SYNOPSIS ^

function job_edit_act_registration(inst_id)

DESCRIPTION ^

 Store activity map to cortical activity file (.act.mat)

 --- Syntax
 job_edit_act_registration(inst_id)

 --- History
 ????-??-?? Taku Yoshioka
 2008-09-04 Taku Yoshioka

 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_edit_act_registration(inst_id)
0002 % Store activity map to cortical activity file (.act.mat)
0003 %
0004 % --- Syntax
0005 % job_edit_act_registration(inst_id)
0006 %
0007 % --- History
0008 % ????-??-?? Taku Yoshioka
0009 % 2008-09-04 Taku Yoshioka
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 global vbmeg_inst;
0015 if isempty(vbmeg_inst.editact{inst_id}.actfile), return; end
0016 
0017 %
0018 % Global variables
0019 %
0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0021 xxP = vbmeg_inst.editact{inst_id}.xxP;
0022 lb1 = vbmeg_inst.editact{inst_id}.lb1;
0023 actfile = vbmeg_inst.editact{inst_id}.actfile;
0024 
0025 %
0026 % Registration
0027 %
0028 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0029 str = inputdlg('Enter key of the activity map', ...
0030            'Activity map registration',1,{'new_act'});
0031 if length(str)>=1 & ~isempty(str{1}), 
0032   act.key = str{1};
0033   act.xxP = xxP{1};
0034   vb_add_act(actfile,act);
0035 end
0036 
0037 % Add new activity map to list box
0038 set(lb1,'String',vb_get_keyset_act(actfile));

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