MATLAB: How to identify and get the average of local maximum negative peaks for a set of data
finding local maximums negative peaks
Hello,
What is the best function that can be used to find and get the mean values of the circled (red color) local maximum negative peaks for a set of data?
Thank you
Best Answer
If you haveR2017b, see if theislocalmin (link) function will do what you want.
If you have the Signal Processing Toolbox, another option is to use thefindpeaks (link) function on yournegated signal (turning minima into maxima). The locations will be correct and not require any transformation, the peak values returned will be thenegative of the actual values.
Use themean (link) function to get the average (arithmetic mean).
Best Answer