フィルターのクリア

How to find local maxima in a plot

10 ビュー (過去 30 日間)
Imanol Fernandez de arroyabe Zabala
Imanol Fernandez de arroyabe Zabala 2023 年 10 月 8 日
編集済み: Dyuman Joshi 2023 年 10 月 9 日
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.

採用された回答

Dyuman Joshi
Dyuman Joshi 2023 年 10 月 8 日
編集済み: Dyuman Joshi 2023 年 10 月 9 日
@Imanol Fernandez de arroyabe Zabala, findpeaks is a part of the Signal Processing Toolbox.
You need to have the toolbox downloaded and installed to use the function.
And since you don't, you get that error message.
Alternatively use islocalmax to find which elements correspond to a local maximum and use logical indexing to get those elements.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by