Home > functions > job > job_edit_act_dir > job_edit_act_clear.m

job_edit_act_clear

PURPOSE ^

Clear activity map

SYNOPSIS ^

function job_edit_act_clear(inst_id)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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);

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