EEGLAB ببساطة
الطيف الترددي PSD
المحطة 6 · الدرس 2 · EEGLAB 2026.1
من الواجهة
- PlotChannel spectra and maps
- Channel spectra and maps -- pop_spectopo()Epoch time range to analyze [min_ms max_ms]:
- Percent data to sample (1 to 100):
100 - Frequencies to plot as scalp maps (Hz):
106 10 22 - Plotting frequency range [lo_Hz hi_Hz]:
1 642 25 - Spectral and scalp map options (see topoplot):Ok
السكربت
figure;
[spectra, freqs] = pop_spectopo(EEG, 1, [0 EEG.xmax*1000], 'EEG', ...
'freq', 10, 'freqrange', [1 64], 'electrodes', 'off');
fprintf('Frequency step: %.2f Hz\n', freqs(2) - freqs(1));
pz = find(strcmp({EEG.chanlocs.labels}, 'Pz'));
alphaBand = freqs >= 8 & freqs <= 13;
alphaFreqs = freqs(alphaBand);
[peakPow, iPeak] = max(spectra(pz, alphaBand));
fprintf('Alpha peak at Pz: %.0f Hz, %.1f dB\n', alphaFreqs(iPeak), peakPow);
[~, order] = sort(spectra(:, freqs == 10), 'descend');
disp({EEG.chanlocs(order(1:5)).labels});أي قيمة أختار؟
| الإعداد | القيمة |
|---|---|
| نطاق الرسم | من 1 إلى 64 هرتز هنا (حتى نصف معدل العيّنات) |
| ترددات خرائط الرأس | 10 هرتز لألفا |
| نسبة البيانات | 100 |
| طول النافذة | الافتراضي (ثانية واحدة، 128 نقطة) |
| أي بيانات | مستمرة نظيفة قبل الـ low-pass |
لقسم Methods
Power spectral density was estimated for each channel from the continuous ICA-cleaned data using Welch's method with 1-s Hamming windows and no overlap (pop_spectopo, EEGLAB 2026.1).