Find the Averaged periodogram

30 ビュー (過去 30 日間)
Mohammed Ba Humaish
Mohammed Ba Humaish 2021 年 12 月 16 日
編集済み: Mohammed Ba Humaish 2021 年 12 月 20 日
how to divid the data recorded to 16*1024 frames, and find the PDS for each frame to find averaged periodogram.

回答 (1 件)

Yazan
Yazan 2021 年 12 月 17 日
編集済み: Yazan 2021 年 12 月 17 日
You need to use Welch’s method for power spectral density estimation. Read the details here, and see the demo below.
clc, clear
x = randn(1024*16, 1);
% length of each segment
seg = 1024;
% FFT length
nfft = nextpow2(seg);
% Overlap 25% of window
ov = 0.25*1024;
% Analysis window
wind = hanning(seg);
% Welch’s power spectral density estimate
[pxx,f] = pwelch(x, wind, ov, [], 1, 'centered', 'psd');
% Plot
plot(f, 10*log10(pxx))
xlabel('Normalized frequency - Hz')
ylabel('PSD - dB')
title('Welch’s power spectral density')

カテゴリ

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