Home > functions > job > job_edit_act_dir > job_edit_act_change_vertex.m

job_edit_act_change_vertex

PURPOSE ^

Change selected vertex

SYNOPSIS ^

function job_edit_act_change_vertex(inst_id)

DESCRIPTION ^

 Change selected vertex

 --- Syntax
 job_edit_act_change_vertex(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_change_vertex(inst_id)
0002 % Change selected vertex
0003 %
0004 % --- Syntax
0005 % job_edit_act_change_vertex(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 
0017 %
0018 % Global variables
0019 %
0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0021 V = vbmeg_inst.editact{inst_id}.V;
0022 ed5 = vbmeg_inst.editact{inst_id}.ed5;
0023 
0024 tmp = ceil(str2num(get(ed5,'String')));
0025 if tmp>=1 & tmp<=size(V,1), 
0026   set(ed5,'String',num2str(tmp));
0027   vbmeg_inst.editact{inst_id}.ix = tmp;
0028   
0029   % Update spatial pattern
0030   job_edit_act_update_spatialpattern(inst_id);
0031 end

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