Home > functions > job > job_plot_currentmap_dir > job_plot_cmap_update_talcoord.m

job_plot_cmap_update_talcoord

PURPOSE ^

Update standard brain coordinate

SYNOPSIS ^

function job_plot_cmap_update_talcoord(inst_id)

DESCRIPTION ^

 Update standard brain coordinate

 --- History
 2008-10-03 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_plot_cmap_update_talcoord(inst_id)
0002 % Update standard brain coordinate
0003 %
0004 % --- History
0005 % 2008-10-03 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.plotcmap{inst_id}.V), return; end
0012 
0013 %
0014 % Global variables
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 ix_peak = vbmeg_inst.plotcmap{inst_id}.ix_peak;
0018 rb1 = vbmeg_inst.plotcmap{inst_id}.rb1;
0019 rb2 = vbmeg_inst.plotcmap{inst_id}.rb2;
0020 ed4 = vbmeg_inst.plotcmap{inst_id}.ed4;
0021 ed6 = vbmeg_inst.plotcmap{inst_id}.ed6;
0022 
0023 %
0024 % Update standard brain coordinate
0025 %
0026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0027 set(vbmeg_inst.plotcmap{inst_id}.ed4,'String',num2str(ix_peak)); 
0028 
0029 if get(rb1,'Value')==get(rb1,'Max'), 
0030   Vstd = vbmeg_inst.plotcmap{inst_id}.Vtal;
0031 else
0032   Vstd = vbmeg_inst.plotcmap{inst_id}.Vmni;
0033 end
0034 
0035 str = [num2str(ceil(Vstd(ix_peak,1))) ',' ...
0036        num2str(ceil(Vstd(ix_peak,2))) ',' ...
0037        num2str(ceil(Vstd(ix_peak,3)))];
0038 set(vbmeg_inst.plotcmap{inst_id}.ed6,'String',str);

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