Home > functions > job > job_edit_area_dir > job_edit_area_overwrite.m

job_edit_area_overwrite

PURPOSE ^

SYNOPSIS ^

function job_edit_area_overwrite(inst_id)

DESCRIPTION ^

 Plot brain model


 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_overwrite(inst_id)
0002 %
0003 % Plot brain model
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 % Stack
0012 job_edit_area_stack(inst_id);
0013 
0014 % Global variables
0015 lb1 = vbmeg_inst.editarea{inst_id}.lb1; 
0016 areafile = vbmeg_inst.editarea{inst_id}.areafile; 
0017 Iextract = vbmeg_inst.editarea{inst_id}.Iextract;
0018 ed3 = vbmeg_inst.editarea{inst_id}.ed3;
0019 
0020 % Get area
0021 i = get(lb1,'Value');
0022 keyset = get(lb1,'String');
0023 Area = vb_get_area(areafile,keyset{i});
0024 
0025 % Merge area
0026 Iextract = vbmeg_inst.editarea{inst_id}.Iextract;
0027 if size(Area.Iextract,1)==1, Area.Iextract = Area.Iextract'; end; 
0028 Iextract{1} = unique([Iextract{2}; Area.Iextract]);
0029 vbmeg_inst.editarea{inst_id}.Iextract = Iextract;
0030 
0031 % Update screen
0032 job_edit_area_update_spatialpattern(inst_id);
0033 
0034 % Vertex number
0035 set(ed3,'String',num2str(length(Iextract{1})));

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