Change trial number Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_plot_meg_change_trial(inst_id) 0002 % 0003 % Change trial number 0004 % 0005 % 0006 % Copyright (C) 2011, ATR All Rights Reserved. 0007 % License : New BSD License(see VBMEG_LICENSE.txt) 0008 0009 global vbmeg_inst; 0010 define_job_plot_meg_const; 0011 0012 max_trial = size(vbmeg_inst.plotmeg{inst_id}.bexp,3); 0013 n_trial = str2num(get(vbmeg_inst.plotmeg{inst_id}.ed1,'String')); 0014 n_trial = ceil(n_trial); 0015 0016 if n_trial>max_trial, n_trial = max_trial; end; 0017 if n_trial<1, n_trial = 1; end; 0018 set(vbmeg_inst.plotmeg{inst_id}.ed1,'String',num2str(n_trial)); 0019 0020 vbmeg_inst.plotmeg{inst_id}.n_trial = n_trial; 0021 0022 job_plot_meg_update_timecourse(inst_id, FORCE_UPDATE); 0023 job_plot_meg_update_spatialpattern(inst_id);