return post-trigger from current MEGinfo struct [usage] [posttrigger] = vb_meginfo_get_post_trigger(MEGinfo) [input] MEGinfo : <required> <<struct>> MEG information [output] posttrigger : post-trigger value of current MEGinfo [note] Posttrigger field is not regularly defined for MEGinfo [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_meginfo_get_post_trigger(MEGinfo) 0002 % return post-trigger from current MEGinfo struct 0003 % [usage] 0004 % [posttrigger] = vb_meginfo_get_post_trigger(MEGinfo) 0005 % [input] 0006 % MEGinfo : <required> <<struct>> MEG information 0007 % [output] 0008 % posttrigger : post-trigger value of current MEGinfo 0009 % [note] 0010 % Posttrigger field is not regularly defined for MEGinfo 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('MEGinfo', 'var'), MEGinfo = []; end 0019 [MEGinfo] = inner_check_arguments(MEGinfo); 0020 0021 % --- MAIN PROCEDURE --------------------------------------------------------- % 0022 % 0023 posttrigger = MEGinfo.Posttrigger; 0024 return; 0025 % 0026 % --- END OF MAIN PROCEDURE -------------------------------------------------- % 0027 0028 % --- INNER FUNCTIONS -------------------------------------------------------- % 0029 % 0030 % --- inner_check_arguments() 0031 % 0032 function [MEGinfo] = inner_check_arguments(MEGinfo) 0033 0034 func_ = mfilename; 0035 if isempty(MEGinfo) 0036 error('(%s)MEGinfo is a required parameter', func_); 0037 end 0038 0039 if ~isfield(MEGinfo, 'Posttrigger') 0040 MEGinfo.Posttrigger = []; 0041 end 0042 return; 0043 % 0044 % --- end of inner_check_arguments() 0045 % 0046 % --- END OF INNER FUNCTIONS ------------------------------------------------- % 0047 0048 %%% END OF FILE %%%