How to find local maxima in a plot
Show older comments
Hello everyone. I have converted some data obtained via accelerometer from the time domain into frecuency domain. Now I want to obtain the values of the peaks, but when I use the findpeaks() function and feed it the abs(fft()) that I've done to obtain my function, the following error is displayed:
Undefined function 'findpeaks' for input arguments of type 'double'.
I've tried converting the array values into integers with int32 and int64 and it doensn't work with those either apparently.
What am I doing wrong? is there a symilar function that can do what I want?
Thanks in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!