フィルターのクリア

Use findpeaks on specific frequency range

6 ビュー (過去 30 日間)
Kcire L
Kcire L 2021 年 3 月 10 日
編集済み: Adam Danz 2021 年 3 月 12 日
Hello,
I am trying to find the two peaks just under 1Hz in the plot attached. I wasn't sure how to use findpeaks to do this, because it keeps wanting to find the high value curve in the beggining of the plot, and not the pronounced frequencies after.
Could someone please help me extract these frequencies and what commands I would need to Mark these on the graph?
Thank you.

採用された回答

Adam Danz
Adam Danz 2021 年 3 月 10 日
編集済み: Adam Danz 2021 年 3 月 12 日
Limit the range of the peak-search by limiting the inputs.
I can't see the x-ticks in your image but this example ignores any data beyond x=1000.
idx = x < 1000; %hz
[. . .] = findpeaks(y(idx),x(idx),___);

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by