Home > functions > job > job_edit_act_dir > job_edit_act_change_angle.m

job_edit_act_change_angle

PURPOSE ^

Change angle

SYNOPSIS ^

function job_edit_act_change_angle(inst_id,str)

DESCRIPTION ^

 Change angle
 
 --- Syntax
 function job_edit_act_change_colorbar(inst_id,str)

 --- History
 2009-05-19 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_angle(inst_id,str)
0002 % Change angle
0003 %
0004 % --- Syntax
0005 % function job_edit_act_change_colorbar(inst_id,str)
0006 %
0007 % --- History
0008 % 2009-05-19 Taku Yoshioka
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 global vbmeg_inst; 
0014 
0015 %
0016 % Global variables
0017 %
0018 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0019 h_fig = vbmeg_inst.editact{inst_id}.h_fig;
0020 h_space = vbmeg_inst.editact{inst_id}.h_space;
0021 
0022 %
0023 % Change angle
0024 %
0025 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0026 set(h_fig,'CurrentAxes',h_space);
0027 
0028 switch str
0029  case 'left',
0030   view([-90 0]);
0031  case 'right',
0032   view([90 0]);
0033  case 'top',
0034   view([0 90]);
0035  case 'bottom',
0036   view([-180 -90]);
0037 end

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