Home > vbmeg > functions > device > meg > vb_meginfo_set_pre_trigger.m

vb_meginfo_set_pre_trigger

PURPOSE ^

set pretrigger to current MEGinfo struct

SYNOPSIS ^

function [MEGinfo] = vb_meginfo_set_pre_trigger(MEGinfo, pretrigger)

DESCRIPTION ^

 set pretrigger to current MEGinfo struct
 [usage]
   [MEGinfo] = vb_meginfo_set_pre_trigger(MEGinfo, pretrigger)
 [input]
      MEGinfo : <required> <<struct>> MEG information
   pretrigger : <optional> value of pre-trigger ([])
 [output]
      MEGinfo : <<struct>> updated MEGinfo
 [note]
   
 [hisotory]
   2007-06-29 (Sako) initial version
   2008-01-29 (Sako) renewed due to new specification

 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 [MEGinfo] = vb_meginfo_set_pre_trigger(MEGinfo, pretrigger)
0002 % set pretrigger to current MEGinfo struct
0003 % [usage]
0004 %   [MEGinfo] = vb_meginfo_set_pre_trigger(MEGinfo, pretrigger)
0005 % [input]
0006 %      MEGinfo : <required> <<struct>> MEG information
0007 %   pretrigger : <optional> value of pre-trigger ([])
0008 % [output]
0009 %      MEGinfo : <<struct>> updated MEGinfo
0010 % [note]
0011 %
0012 % [hisotory]
0013 %   2007-06-29 (Sako) initial version
0014 %   2008-01-29 (Sako) renewed due to new specification
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 
0020 % --- CHECK ARGUMENTS --- %
0021 if ~exist('MEGinfo', 'var'), MEGinfo = []; end
0022 if ~exist('pretrigger', 'var'), pretrigger = []; end
0023 [MEGinfo, pretrigger] = inner_check_arguments(MEGinfo, pretrigger);
0024 
0025 % --- MAIN PROCEDURE --------------------------------------------------------- %
0026 %
0027 % MEGinfo.Pretriger = pretrigger;
0028 MEGinfo.Pretrigger = pretrigger;
0029 return;
0030 %
0031 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0032 
0033 % --- INNER FUNCTIONS -------------------------------------------------------- %
0034 %
0035 % --- inner_check_arguments()
0036 %
0037 function [MEGinfo, pretrigger] = inner_check_arguments(MEGinfo, pretrigger)
0038 
0039 func_ = mfilename;
0040 if isempty(MEGinfo)
0041   error('(%s)MEGinfo is a required parameter', func_);
0042 end
0043 
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