Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_spike_triggeredspectrum”.
FT_SPIKE_TRIGGEREDSPECTRUM computes the Fourier spectrum of the LFP around the spikes. The difference to FT_SPIKETRIGGEREDSPECTRUM is that this function allows for multiple frequencies to be processed with different time-windows per frequency. The input SPIKE should be organised as the spike or the raw datatype, obtained from FT_SPIKE_MAKETRIALS or FT_PREPROCESSING (in that case, conversion is done within the function) The input DATA should be organised as the raw datatype, obtained from FT_PREPROCESSING Use as [freq] = ft_spike_triggeredspectrum(cfg,data,spike) Important is that data.time and spike.trialtime should be referenced relative to the same trial trigger times! Configurations: cfg.tapsmofrq = vector 1 x numfoi, the amount of spectral smoothing through multi-tapering. Note that 4 Hz smoothing means plus-minus 4 Hz, i.e. a 8 Hz smoothing box. cfg.foi = vector 1 x numfoi, frequencies of interest cfg.taper = 'dpss', 'hanning' or many others, see WINDOW (default = 'dpss') cfg.t_ftimwin = vector 1 x numfoi, length of time window (in seconds) cfg.spikechannel = cell-array with selection of channels (default = 'all') see FT_CHANNELSELECTION for details cfg.channel = Nx1 cell-array with selection of channels (default = 'all'), see FT_CHANNELSELECTION for details cfg.borderspikes = 'yes' (default) or 'no'. If 'yes', we process the spikes falling at the border using an LFP that is not centered on the spike. cfg.taperopt = parameter that goes in WINDOW function (only applies to windows like KAISER) If the triggered spike leads a spike in another channel, then the angle of the Fourier spectrum of that other channel will be negative.
Share this page: