RemoveCorrSpikes(d,Fs,sptm,varargin)
% --------[sptm,spam] = RemoveCorrSpikes(d,Fs,sptm,varargin)-------------
% Removes spikes from multichannel data that are highy correlated with
% other channels...usually on order of .85 or so. This technique helps eliminate
% false postivie spikes due to movement artifacts common in all channels.
%
% This code is an interpretation of:
% Paralikar et. al. 2010
%
% >>> INPUTS >>>
% Required:
% d = data matrix. note, if vector, function will end without doing
% anything. Needs to be in COLUMN format
% Fs = sampling rate
% sptm = matrix of spike times in samples. also in column format
% Optional:
% corr_thresh = correlation coefficient threshold for removing spikes.
% Default = 0.8
% spamp = matrix of spike amplitudes...doesn't contribute to the
% function, but if included indexes removed from sptm will also be
% removed from spamp.
% spsnip = matrix of spike snips...doesn't contribute to the function but if
% included indexes removed from sptm will also be removed from spsnip
%
% <<< OUTPUTS <<<
% sptm = spiketimes after eliminating bad spikes...bad spikes will have
% value of 0.
% spamp = spike amps after eliminating bad spikes (OPTIONAL)
% spsnip = matrix of spikesnips after eliminating bad spikes (optional)
%
% By JMS, 11/12/2015
%---------------------------------------------------------------
引用格式
Jordan Sorokin (2024). RemoveCorrSpikes(d,Fs,sptm,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/55439-removecorrspikes-d-fs-sptm-varargin), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Correlation and Convolution >
- Sciences > Neuroscience > Cellular Neuroscience > Electrophysiology >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |