Plot brain model Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_edit_area_delete(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 % Global variables 0012 areafile = vbmeg_inst.editarea{inst_id}.areafile; 0013 lb1 = vbmeg_inst.editarea{inst_id}.lb1; 0014 0015 % Delete area 0016 ix = get(lb1,'Value'); 0017 str = get(lb1,'String'); 0018 vb_rm_area(areafile,str{ix}); 0019 0020 % Update list box 0021 set(lb1,'Value',1); 0022 set(lb1,'String',vb_get_keyset_area(areafile));