fn_triggeravg
Contents
Syntax
y = fn_triggeravg(x,dim,indices[,nframes][,'noavg'],['all'])
Description
average according to triggers
Input: - x data to trigger - dim dimension of the data on which to trigger and average [by default, the last dimension is used] if dim is a vector, the first dimension is taken for triggering, while additional dimensions stand for repetitions - indices trigger position, in indices coordinates; or an array of logicals the same size as x in dimension(s) dim - nframes size of the output in this dimension: it should be a 2-element vector (how many frames before trigger, and how many frames after trigger), or a scalar (the same number is used both times) [the default is 0, i.e. only averaging at the trigger positions] - 'noavg' do not average - 'all' keep events that are too close to edges -> NaN will be placed where data is missing
Source
Thomas Deneux
Copyright 2008-2017