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

vb_eeginfo_set_pre_trigger

PURPOSE ^

set pre-trigger to current EEGinfo struct

SYNOPSIS ^

function [EEGinfo] = vb_eeginfo_set_pre_trigger(EEGinfo, value)

DESCRIPTION ^

 set pre-trigger to current EEGinfo struct
 [usage]
   [EEGinfo] = vb_eeginfo_set_pre_trigger(EEGinfo, value)
 [input]
   EEGinfo : <required> <<struct>> MEG information
     value : <optional> value of pre-trigger [[]]
 [output]
   EEGinfo : <<struct>> updated EEGinfo
 [note]
   
 [hisotory]
   2007-08-02 (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_pre_trigger(EEGinfo, value)
0002 % set pre-trigger to current EEGinfo struct
0003 % [usage]
0004 %   [EEGinfo] = vb_eeginfo_set_pre_trigger(EEGinfo, value)
0005 % [input]
0006 %   EEGinfo : <required> <<struct>> MEG information
0007 %     value : <optional> value of pre-trigger [[]]
0008 % [output]
0009 %   EEGinfo : <<struct>> updated EEGinfo
0010 % [note]
0011 %
0012 % [hisotory]
0013 %   2007-08-02 (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.Pretrigger = 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 
0036 func_ = mfilename;
0037 if isempty(EEGinfo)
0038   error('(%s)EEGinfo is a required parameter', func_);
0039 end
0040 
0041 if isempty(value)
0042   % require no action - set empty
0043 end
0044 return;
0045 %
0046 % --- end of inner_check_arguments()
0047 %
0048 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0049 
0050 %%% END OF FILE %%%

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