Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: clipping detection
Date: Thu, 8 Nov 2007 05:27:36 +0000 (UTC)
Organization: University of Memphis
Lines: 14
Message-ID: <fgu6o8$83r$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1194499656 8315 172.30.248.37 (8 Nov 2007 05:27:36 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Nov 2007 05:27:36 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:436531



I'm looking for something fast that will tell me if the data
from a digitizer is being clipped.

Clipped would be N consecutive samples of the identical (or
within one bit) data in a vector array.

Any ideas how to do this quickly? 

I though about taking the derivative and then checking for
zeros but I'm getting messed up on quickly getting the N
consecutive samples sorted out.  In other words, at 100 Hz,
then I would say that 5 identical samples suggests clipping,
but this can happen at any position in the output array.