pwelch using hanning window of 1 sec and 50% overlap

18 ビュー (過去 30 日間)
siri meka
siri meka 2022 年 2 月 18 日
コメント済み: siri meka 2022 年 2 月 19 日
Hello,
Can someone please help me to fast Fourier transform (FFT) a signal to be computed with a 1-second Hanning window and the window was shifted with 50% overlap and then calculate the median of the spectra of all sliding windows.
My sampling freq is 24KHz.
Thank you in advance

採用された回答

Kevin
Kevin 2022 年 2 月 18 日
Hi Shree,
To apply Hanning window and FFT,
X = fft(x .* hanning(24e3));
Here x = column vector of 24e3 samples (hence 1 second).
Then move x to next block with 50% overlap, then do the above line of code again.
After getting all X's, then you can do median.
Yes, there is some code you need to write but hopefully it is not too complicated.
Kevin
  1 件のコメント
siri meka
siri meka 2022 年 2 月 19 日
Thank you for this. ill write the next part

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by