return post-trigger from current EEGinfo struct [usage] [posttrigger] = vb_eeginfo_get_post_trigger(EEGinfo) [input] EEGinfo : <required> <<struct>> EEG information [output] posttrigger : post-trigger value of current EEGinfo [note] [hisotory] 2007-08-02 (Sako) initial version Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [posttrigger] = vb_eeginfo_get_post_trigger(EEGinfo) 0002 % return post-trigger from current EEGinfo struct 0003 % [usage] 0004 % [posttrigger] = vb_eeginfo_get_post_trigger(EEGinfo) 0005 % [input] 0006 % EEGinfo : <required> <<struct>> EEG information 0007 % [output] 0008 % posttrigger : post-trigger value of current EEGinfo 0009 % [note] 0010 % 0011 % [hisotory] 0012 % 2007-08-02 (Sako) initial version 0013 % 0014 % Copyright (C) 2011, ATR All Rights Reserved. 0015 % License : New BSD License(see VBMEG_LICENSE.txt) 0016 0017 % --- CHECK ARGUMENTS --- % 0018 if ~exist('EEGinfo', 'var') EEGinfo = []; end 0019 [EEGinfo] = inner_check_arguments(EEGinfo); 0020 0021 % --- MAIN PROCEDURE --------------------------------------------------------- % 0022 % 0023 posttrigger = EEGinfo.Posttrigger; 0024 return; 0025 % 0026 % --- END OF MAIN PROCEDURE -------------------------------------------------- % 0027 0028 % --- INNER FUNCTIONS -------------------------------------------------------- % 0029 % 0030 % --- inner_check_arguments() 0031 % 0032 function [EEGinfo] = inner_check_arguments(EEGinfo) 0033 0034 func_ = mfilename; 0035 if isempty(EEGinfo) 0036 error('(%s)EEGinfo is a required parameter', func_); 0037 end 0038 0039 if ~isfield(EEGinfo, 'Posttrigger') 0040 EEGinfo.Posttrigger = []; 0041 end 0042 return; 0043 % 0044 % --- end of inner_check_arguments() 0045 % 0046 % --- END OF INNER FUNCTIONS ------------------------------------------------- % 0047 0048 %%% END OF FILE %%%