how to find max value in a range?

1 回表示 (過去 30 日間)
hafis radzi
hafis radzi 2019 年 4 月 28 日
コメント済み: dpb 2019 年 4 月 28 日
hello guys, i need some help.i need to find the max value in range 0.4-10.f noisy.PNG
  1 件のコメント
dpb
dpb 2019 年 4 月 28 日
What's df (frequency resolution)?
With Fmax=1 MHz, it would requre 10,000 points in the FFT to have a 10 Hz resolution, possible but 0.1 Hz would be 100,000 points minimum.
From the plot, looks like the maximum is almost certainly in the DC bin; did you remove the mean before taking FFT?
In short, to answer the Q? need to know what were the sampling parameters
Altho, presuming the frequency axis is correct, then the indices for the bins are
idx=[0.4 10]/df+1; % +1 accounts for f(1)--> 0 Hz (DC component)
where df is the frequency resolution.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by