Home > vbmeg > functions > device > eeg > vb_eeginfo_set_post_trigger.m

vb_eeginfo_set_post_trigger

PURPOSE ^

set post-trigger value to current EEGinfo struct

SYNOPSIS ^

function [EEGinfo] = vb_eeginfo_set_post_trigger(EEGinfo, value)

DESCRIPTION ^

 set post-trigger value to current EEGinfo struct
 [usage]
   [EEGinfo] = vb_eeginfo_set_post_trigger(EEGinfo, value)
 [input]
   EEGinfo : <required> <<struct>> EEG information
     value : <optional> value of post-trigger [[]]
 [output]
   EEGinfo : <<struct>> updated EEGinfo
 [note]
   
 [hisotory]
   2007-06-29 (Sako) initial version

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

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

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005