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.
|
|
Contact us at files@mathworks.com