Clear activity map --- Syntax job_edit_act_clear(inst_id) --- History ????-??-?? Taku Yoshioka 2008-09-04 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_edit_act_clear(inst_id) 0002 % Clear activity map 0003 % 0004 % --- Syntax 0005 % job_edit_act_clear(inst_id) 0006 % 0007 % --- History 0008 % ????-??-?? Taku Yoshioka 0009 % 2008-09-04 Taku Yoshioka 0010 % 0011 % Copyright (C) 2011, ATR All Rights Reserved. 0012 % License : New BSD License(see VBMEG_LICENSE.txt) 0013 0014 global vbmeg_inst; 0015 if isempty(vbmeg_inst.editact{inst_id}.V), return; end 0016 if isempty(vbmeg_inst.editact{inst_id}.xxP), return; end 0017 0018 % 0019 % Global variables 0020 % 0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0022 xxP = vbmeg_inst.editact{inst_id}.xxP; 0023 0024 % 0025 % Clear activity map 0026 % 0027 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0028 job_edit_act_stack(inst_id); 0029 xxP{1} = zeros(length(xxP{1}),1); 0030 vbmeg_inst.editact{inst_id}.xxP = xxP; 0031 0032 % 0033 % Update plot 0034 % 0035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0036 job_edit_act_update_spatialpattern(inst_id);