the findpeaks function does not seem to work for me
39 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel Abraham
am 21 Jul. 2021
Kommentiert: Star Strider
am 22 Jul. 2021
Hello Everyone, I am currently having issues with the findpeaks function. I am trying to do a peak analysis to visualise the peak values of a particular dataset in my table. The table is named T and the datetime column is T.Date while the main data is T.Data.
This is what I wrote:
plot(T.Date,T.Data,'r-')
grid on
findpeaks(T.Data)
but it displays this error: Undefined function 'findpeaks' for input arguments of type 'double'.
Does anyone know what it means please?
Thanks in advance for your response.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Jul. 2021
The findpeaks function is in the Signal Processing Toolbox. You will have to have it licensed and installed to use the functions.
If you have R2017b or later, you can use the islocalmax function. It is similar, although not identical to findpeaks.
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!