Home > functions > job > job_edit_area_dir > job_edit_area_update_spatialpattern.m

job_edit_area_update_spatialpattern

PURPOSE ^

SYNOPSIS ^

function job_edit_area_update_spatialpattern(inst_id)

DESCRIPTION ^

 Update spatial pattern


 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_area_update_spatialpattern(inst_id)
0002 %
0003 % Update spatial pattern
0004 %
0005 %
0006 % Copyright (C) 2011, ATR All Rights Reserved.
0007 % License : New BSD License(see VBMEG_LICENSE.txt)
0008 
0009 global vbmeg_inst; 
0010 
0011 % Global variables
0012 h_fig = vbmeg_inst.editarea{inst_id}.h_fig; 
0013 h_space = vbmeg_inst.editarea{inst_id}.h_space;
0014 V = vbmeg_inst.editarea{inst_id}.V;
0015 F = vbmeg_inst.editarea{inst_id}.F;
0016 Iextract = vbmeg_inst.editarea{inst_id}.Iextract;
0017 plot_parm = vbmeg_inst.editarea{inst_id}.plot_parm;
0018 ed3 = vbmeg_inst.editarea{inst_id}.ed3;
0019 
0020 % Patch color
0021 if isfield(vbmeg_inst.editarea{inst_id},'inf_C'),
0022   inf_C = vbmeg_inst.editarea{inst_id}.inf_C;
0023 else
0024   inf_C = [];
0025 end
0026 
0027 % Plot brain model
0028 set(h_fig,'CurrentAxes',h_space);
0029 cla; 
0030 job_edit_area_plotbrain(plot_parm,V,F,inf_C,Iextract{1});
0031 axis tight;
0032 axis off;
0033 axis equal;
0034 
0035 % Vertex number
0036 set(ed3,'String',num2str(length(Iextract{1})));

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