


[maxtab, mintab] = PEAKDET(v,delta) detects peaks in a vector
ARGUMENTS
v ... vector to search.
delta ... threshold value for detemining peak
RETURNS
maxtab ... 2 column vector c1: indices, c2: values
mintab ... consists of two columns. Column 1
ALGORITHM
A point is considered a maximum peak if it has the maximal
value, and was preceded (to the left) by a value lower by
DELTA.
Created by Eli Billauer, 3.4.05 (Explicitly not copyrighted).
This function is released to the public domain; Any use is allowed.