info setter : post-trigger [usage] info = vb_info_set_post_trigger(info, value) [input] info : <required> <<struct>> MEGinfo or EEGinfo or other (unexpected) value : <optional> set value [] [output] info : updated info [note] @see vb_meginfo_set_post_trigger.m @see vb_eeginfo_set_post_trigger.m [history] 2007-08-02 (Sako) initial version Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function info = vb_info_set_post_trigger(info, value) 0002 % info setter : post-trigger 0003 % [usage] 0004 % info = vb_info_set_post_trigger(info, value) 0005 % [input] 0006 % info : <required> <<struct>> MEGinfo or EEGinfo or other (unexpected) 0007 % value : <optional> set value [] 0008 % [output] 0009 % info : updated info 0010 % [note] 0011 % @see vb_meginfo_set_post_trigger.m 0012 % @see vb_eeginfo_set_post_trigger.m 0013 % [history] 0014 % 2007-08-02 (Sako) initial version 0015 % 0016 % Copyright (C) 2011, ATR All Rights Reserved. 0017 % License : New BSD License(see VBMEG_LICENSE.txt) 0018 0019 % --- CHECK ARGUMENTS --- % 0020 if ~exist('info', 'var') info = []; end 0021 if ~exist('value', 'var') value = []; end 0022 [info, value] = inner_check_arguments(info, value); 0023 0024 % --- MAIN PROCEDURE --------------------------------------------------------- % 0025 % 0026 func_ = mfilename; 0027 my_measurement = vb_info_get_measurement(info); 0028 0029 switch my_measurement 0030 case 'EEG' 0031 info = vb_eeginfo_set_post_trigger(info, value); 0032 case 'MEG' 0033 info = vb_meginfo_set_post_trigger(info, value); 0034 otherwise 0035 error('(%s)unexpected measurement : %s', func_, my_measurement); 0036 end 0037 % 0038 % --- END OF MAIN PROCEDURE -------------------------------------------------- % 0039 0040 % --- INNER FUNCTIONS -------------------------------------------------------- % 0041 % 0042 % --- inner_check_arguments() 0043 % 0044 function [info, value] = inner_check_arguments(info, value) 0045 func_ = mfilename; 0046 if isempty(info) 0047 error('(%s)info is a required parameter', func_); 0048 end 0049 0050 if isempty(value) 0051 % require no action - relegate setting default value to particular functions 0052 end 0053 return; 0054 % 0055 % --- end of inner_check_arguments() 0056 % 0057 % --- END OF INNER FUNCTIONS ------------------------------------------------- % 0058 0059 %%% END OF FILE %%%