Home > functions > device > meg > vb_meginfo_set_post_trigger.m

vb_meginfo_set_post_trigger

PURPOSE ^

set post-trigger value to current MEGinfo struct

SYNOPSIS ^

function [MEGinfo] = vb_meginfo_set_post_trigger(MEGinfo, value)

DESCRIPTION ^

 set post-trigger value to current MEGinfo struct
 [usage]
   [MEGinfo] = vb_meginfo_set_post_trigger(MEGinfo, value)
 [input]
   MEGinfo : <required> <<struct>> MEG information
     value : <optional> value of post-trigger [[]]
 [output]
   MEGinfo : <<struct>> updated MEGinfo
 [note]
   post-trigger field is not actually defined in MEGinfo
   this function is to be symmetric with EEGinfo functions
 [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 [MEGinfo] = vb_meginfo_set_post_trigger(MEGinfo, value)
0002 % set post-trigger value to current MEGinfo struct
0003 % [usage]
0004 %   [MEGinfo] = vb_meginfo_set_post_trigger(MEGinfo, value)
0005 % [input]
0006 %   MEGinfo : <required> <<struct>> MEG information
0007 %     value : <optional> value of post-trigger [[]]
0008 % [output]
0009 %   MEGinfo : <<struct>> updated MEGinfo
0010 % [note]
0011 %   post-trigger field is not actually defined in MEGinfo
0012 %   this function is to be symmetric with EEGinfo functions
0013 % [hisotory]
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('MEGinfo', 'var'), MEGinfo = []; end
0021 if ~exist('value', 'var'), value = []; end
0022 [MEGinfo, value] = inner_check_arguments(MEGinfo, value);
0023 
0024 % --- MAIN PROCEDURE --------------------------------------------------------- %
0025 %
0026 MEGinfo.Posttrigger = value;
0027 return;
0028 %
0029 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0030 
0031 % --- INNER FUNCTIONS -------------------------------------------------------- %
0032 %
0033 % --- inner_check_arguments()
0034 %
0035 function [MEGinfo, value] = inner_check_arguments(MEGinfo, value)
0036 func_ = mfilename;
0037 if isempty(MEGinfo)
0038   error('(%s)MEGinfo 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 Tue 27-Aug-2013 11:46:04 by m2html © 2005