Undo operation --- Syntax job_edit_act_average(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_undo(inst_id) 0002 % Undo operation 0003 % 0004 % --- Syntax 0005 % job_edit_act_average(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}.xxP), return; end 0016 0017 % 0018 % Global variables 0019 % 0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0021 xxP = vbmeg_inst.editact{inst_id}.xxP; 0022 0023 for i=1:29, xxP{i} = xxP{i+1}; end; 0024 vbmeg_inst.editact{inst_id}.xxP = xxP; 0025 0026 % 0027 % Update plot 0028 % 0029 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0030 job_edit_act_update_spatialpattern(inst_id); 0031