About the input parameter,"Range":
Range is a 4-element vector:
[Xmin, Xmax, Ymin, Ymax]
Xmin: the lower x boundary of region of interest(ROI).
Xmax: the upper x boundary of ROI
Ymin and Ymax are the same as Xmin and Xmax.
find the peaks whose x are between 23 and 90 and their values is between 700 and inf.
Change line 9 in ma.m to
and you will see that it picks peaks and valleys, both.
27 Aug 2008
21 Jul 2008
Doesn't work when there are two data matching values at the top of a peak. Other than that, perfect.
10 Jun 2008
Vinh Nguyen Quang
05 Jun 2008
works like a charm!!!
01 Mar 2008
Excellent! Thank you
09 Feb 2008
This works great!! Thank you so much :)
11 Dec 2007
this is the best that I found, relavent code
21 Apr 2007
I found a very good m code to pick up the peak data.
06 Mar 2007
I would really like to see a version of this that does functions of two wariables, eg extreme.m/extreme2.m
15 Dec 2006
i found extreme.m is geat and also find peaks from surface: extreme2.m! But this was the first i used
20 Jun 2006
Performance need improvements.
31 Aug 2005
Too slow on large sets of data. I prefer peakdetect.m
22 Feb 2005
I added small code (see below) to the getPeak function, now it works even better on my data.
delta = std(y)
avg = mean(y) it can be local std and mean with window equal to +-several values of "s"
02 Feb 2005
It saved my time.
23 Nov 2004
Hi,please contact me using this email address!
28 Jul 2004
Not sure if I'm using this correctly but I'm not getting accurate peaks at all. My call to the function is fpeak(1:129, data, 2). "data" has 129 values. I'm getting values of 4.0 0 next to 5.0 1, and 3.0 2. Any suggestions would be appreciated.
20 Jul 2004
I just need a function to find peaks. Thank you so much to solve my problem and save my time. It works great. The sensitivity is actually the half-width of the peak. A point is defined as a peak if its value is biger than that of any s points ahead and s points behind.
21 Jun 2004
It worked perfectly for my example. Thanks!!
03 Jun 2004
Thanks for solving my Problem !!!
But I dont understand the sensitivity, can anybody help me ???