Home > functions > gui > preAnalysis > trial_extractor > private > vb_emg_trigger_new.m

vb_emg_trigger_new

PURPOSE ^

Create emg trigger.

SYNOPSIS ^

function [obj] = vb_emg_trigger_new(ch_name, status_level,t_event, t_smooth, t_period, p_val)

DESCRIPTION ^

 Create emg trigger.

 [USAGE]
    vb_emg_trigger_new(ch_name, t_event, t_smooth, t_period, p_val)
 [IN]
         ch_name : extract trigger from this channel [string]
    status_level : 
         t_event : <optional>
        t_smooth : <optional>
        t_period : <optional>
           p_val : <optional>
 [OUT]
           obj : emg_trigger object
 [see also]
    vb_get_voice_onset

 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:

SOURCE CODE ^

0001 function [obj] = vb_emg_trigger_new(ch_name, status_level, ...
0002                                    t_event, t_smooth, t_period, p_val)
0003 % Create emg trigger.
0004 %
0005 % [USAGE]
0006 %    vb_emg_trigger_new(ch_name, t_event, t_smooth, t_period, p_val)
0007 % [IN]
0008 %         ch_name : extract trigger from this channel [string]
0009 %    status_level :
0010 %         t_event : <optional>
0011 %        t_smooth : <optional>
0012 %        t_period : <optional>
0013 %           p_val : <optional>
0014 % [OUT]
0015 %           obj : emg_trigger object
0016 % [see also]
0017 %    vb_get_voice_onset
0018 %
0019 % Copyright (C) 2011, ATR All Rights Reserved.
0020 % License : New BSD License(see VBMEG_LICENSE.txt)
0021 
0022 %
0023 % --- Previous check
0024 %
0025 if nargin < 1
0026     error('This function needs 1 argments. Please check your code.');
0027 end
0028 
0029 %
0030 % --- Main Procedure
0031 %
0032 obj = vb_trigger_new(ch_name, 'emg', status_level);
0033 
0034 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0035 % PARAMETER NAME IS IMPORTANT(for vb_get_trial_index)
0036 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0037 if exist('t_event', 'var')
0038     obj.t_event = t_event;
0039 end
0040 if exist('t_smooth', 'var')
0041     obj.t_smooth = t_smooth;
0042 end
0043 if exist('t_period', 'var')
0044     obj.t_period = t_period;
0045 end
0046 if exist('p_val', 'var')
0047     obj.p_val    = p_val;
0048 end
0049 
0050 %
0051 % --- After check
0052 %
0053 if nargout < 1
0054     error('function caller should receive this object.');
0055 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005