Code covered by the BSD License  

Highlights from
Find Clipped Trials

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 3.38 KB File ID: #23143

Find Clipped Trials

by Matthew Nelson

 

27 Feb 2009

Find trial indices in which "clipping" occurred for recorded analog data in a trials format

| Watch this File

File Information
Description

%function ClipTrs=FindClipTrs(curADMat,nConsecSampCutoff)
%
%Given an input AD matrix divided into trials, this finds trials where
%clipping occurs. Clipping is determined to happen when more than
%nConsecSampCutoff (an input to this fxn) samples have the same precise
%value. For real data, this should only happen when clipping has occured
%at either the maximal or minimal value for teh analog channel.
%
%Inputs:
% curADMat: A nTrials x nSampsPerTrial array containing the samples
% of an analog value for each trial.
% nConsecSampCutoff: A scalar value indicating the number of
% consecutive repeating samples for a clipping event to
% be considered to have been found.
%
% Outputs:
% ClipTrs: A nTrials x 1 vector of logical values that is true for
% trials where sufficient clipping was deemed to have
% ocurred.
%
% written by Matthew Nelson on 090226

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
GETCHUNKS
This submission has inspired the following:
Clipping Indicator

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
neuroscience Matthew Nelson 27 Feb 2009 17:16:08
psychology Matthew Nelson 27 Feb 2009 17:16:08
trials Matthew Nelson 27 Feb 2009 17:16:08
analog Matthew Nelson 27 Feb 2009 17:16:08
clipping Matthew Nelson 27 Feb 2009 17:16:08
clip Matthew Nelson 27 Feb 2009 17:16:08
repeated values lfp Matthew Nelson 27 Feb 2009 17:16:08
eeg Matthew Nelson 27 Feb 2009 17:16:08
sample Matthew Nelson 27 Feb 2009 17:16:08

Contact us at files@mathworks.com