Home > vbmeg > functions > job > job_edit_act_dir > job_edit_act_update_talcoord.m

job_edit_act_update_talcoord

PURPOSE ^

Update standard brain coordinate

SYNOPSIS ^

function job_edit_act_update_talcoord(inst_id)

DESCRIPTION ^

 Update standard brain coordinate

 --- History
 2009-05-22 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_update_talcoord(inst_id)
0002 % Update standard brain coordinate
0003 %
0004 % --- History
0005 % 2009-05-22 Taku Yoshioka
0006 %
0007 % Copyright (C) 2011, ATR All Rights Reserved.
0008 % License : New BSD License(see VBMEG_LICENSE.txt)
0009 
0010 global vbmeg_inst; 
0011 if isempty(vbmeg_inst.editact{inst_id}.V), return; end
0012 
0013 %
0014 % Global variables
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 ix = vbmeg_inst.editact{inst_id}.ix;
0018 rb1 = vbmeg_inst.editact{inst_id}.rb1;
0019 rb2 = vbmeg_inst.editact{inst_id}.rb2;
0020 ed4 = vbmeg_inst.editact{inst_id}.ed4;
0021 ed5 = vbmeg_inst.editact{inst_id}.ed5;
0022 
0023 %
0024 % Update standard brain coordinate
0025 %
0026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0027 set(vbmeg_inst.editact{inst_id}.ed5,'String',num2str(ix)); 
0028 
0029 if get(rb1,'Value')==get(rb1,'Max'), 
0030   Vstd = vbmeg_inst.editact{inst_id}.Vtal;
0031 else
0032   Vstd = vbmeg_inst.editact{inst_id}.Vmni;
0033 end
0034 
0035 str = ['[' num2str(ceil(Vstd(ix,1))) ',' ...
0036        num2str(ceil(Vstd(ix,2))) ',' ...
0037        num2str(ceil(Vstd(ix,3))) ']'];
0038 set(vbmeg_inst.editact{inst_id}.ed4,'String',str);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005