필터 지우기
필터 지우기

the findpeaks function does not seem to work for me

조회 수: 22 (최근 30일)
Daniel Abraham
Daniel Abraham 2021년 7월 21일
댓글: Star Strider 2021년 7월 22일
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.

채택된 답변

Star Strider
Star Strider 2021년 7월 21일
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
Daniel Abraham
Daniel Abraham 2021년 7월 22일
Thank you, I just downloadd the toolbox, it works now
Star Strider
Star Strider 2021년 7월 22일
As always, my pleasure!
.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by