Home > biomechZoo > Toolbox > Support Functions > peakdet.m

peakdet

PURPOSE ^

[maxtab, mintab] = PEAKDET(v,delta) detects peaks in a vector

SYNOPSIS ^

function [maxtab, mintab]=peakdet(v, delta)

DESCRIPTION ^

 [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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005