Why is there a difference between pwelch PSD & power of frequency bands?

조회 수: 2 (최근 30일)
Emilia Butters
Emilia Butters 2020년 7월 21일
답변: Hamza Imtiaz 2022년 12월 12일
Hi!
I have calculated the PSD of my EEG data using (I have 55 channels):
Fs = EEG.srate;
nfft = 2^nextpow2(699880);
for i = 1:55
[pxx(i,:), freqs] = pwelch(EEG.data(i,:), hanning(699880), [], nfft, Fs);
end
mean_pxx = mean(pxx,1);
And I have gotten the attatched screenshot. I then wanted to calculate the power of each frequency band using the following code which yieleded the second attatched screenshot.
deltaIdx = find(freqs>1 & freqs<4);
thetaIdx = find(freqs>4 & freqs<8);
alphaIdx = find(freqs>8 & freqs<12);
betaIdx = find(freqs>13 & freqs<30);
gammaIdx = find(freqs>30 & freqs<70);
deltaPower = mean(mean_pxx(deltaIdx));
thetaPower = mean(mean_pxx(thetaIdx));
alphaPower = mean(mean_pxx(alphaIdx));
betaPower = mean(mean_pxx(betaIdx));
gammaPower = mean(mean_pxx(gammaIdx));
powers = [deltaPower thetaPower alphaPower betaPower gammaPower];
f = [1 2 3 4 5];
plot(f,powers, '-o', 'linewidth', 2)
Why does the PSD of all the data show little to no gamma band power but the decomposition of the bands show a lot of gamma band power? Thank you!

답변 (1개)

Hamza Imtiaz
Hamza Imtiaz 2022년 12월 12일
Because the range of frequencies in the gamma band is 40 Hz (30-70) , whereas delta theta and alpha are all 4 Hz

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by