Plot histogram of activity map --- Syntax job_edit_act_plot_histogram(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_plot_histogram(inst_id) 0002 % Plot histogram of activity map 0003 % 0004 % --- Syntax 0005 % job_edit_act_plot_histogram(inst_id) 0006 % 0007 % 0008 % --- History 0009 % ????-??-?? Taku Yoshioka 0010 % 2008-09-04 Taku Yoshioka 0011 % 0012 % Copyright (C) 2011, ATR All Rights Reserved. 0013 % License : New BSD License(see VBMEG_LICENSE.txt) 0014 0015 global vbmeg_inst; 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{1}; 0023 0024 % 0025 % Plot histogram 0026 % 0027 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0028 if min(xxP)==0, ix = find(xxP>0); 0029 else ix = 1:length(xxP); end 0030 figure; 0031 hist(xxP(ix),30);