It's a simple function. Can help you find peak value from a lot of datas. It contains some demos.
It's my first time to submit file, thanks for your using.
How do we modify this code to just find the minima/ valley point and ignore the maxima? Thank you.
how I define the number of peaks that I need the function to return. For example if I only need the first three peaks of data?
Thanks, It works great!
Has anyone had any trouble finding the peaks for a vector that has both positive and negative values? Does not seem to be working with that.
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.
I would be grateful if you put some explanation about the inputs. What is the input "Range"? and why is it a four-element vector?
Ah never mind... d'oh
Sorry if this is a dumb question, but where is this getPeak function that is called within this function?? I tried finding it on File Exchange and am not getting anything...
There is a bug in this program. when the peak/valley contains more than 1 point with same value, this program will just ignore this peak/valley.
Poorly explained, poor performance for large data sets and requires too much parameter tweaking in order to find peaks.
it doesn't work.
Change line 9 in ma.m to
and you will see that it picks peaks and valleys, both.
Doesn't work when there are two data matching values at the top of a peak. Other than that, perfect.
works like a charm!!!
Excellent! Thank you
This works great!! Thank you so much :)
this is the best that I found, relavent code
I found a very good m code to pick up the peak data.
I would really like to see a version of this that does functions of two wariables, eg extreme.m/extreme2.m
i found extreme.m is geat and also find peaks from surface: extreme2.m! But this was the first i used
Performance need improvements.
Too slow on large sets of data. I prefer peakdetect.m
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"
It saved my time.
Hi,please contact me using this email address!
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.
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.
It worked perfectly for my example. Thanks!!
Thanks for solving my Problem !!!
But I dont understand the sensitivity, can anybody help me ???
Thanks, It helps me alot!
You are Genius!
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.