EEGLAB ببساطة
الاستيفاء (interpolation)
المحطة 3 · الدرس 6 · EEGLAB 2026.1
من الواجهة
- EditSelect dataChannel(s)on->remove theseOK
D1 badchC3 - Channels per frame
D1 noC3 - ToolsInterpolate electrodesInterpolate channel(s) -- pop_interp()
- Use all channels from other datasetDataset indexOKWhat channel(s) do you want to interpolate
2D1 badchC3 - Interpolation methodSphericalTime range [min max] (s)OK
- PlotChannel data (scroll)
C3D1 badchD1 C3 back - ToolsInterpolate electrodes
- Use all channels from other dataset
- SphericalOK
D1 interp
السكربت
if ~isempty(badChans)
EEG = pop_interp(EEG, fullLocs, 'spherical');
end
EEG.setname = 'D1 interp';
fprintf('Channels after interpolation: %d\n', EEG.nbchan);
EEG = pop_saveset(EEG, 'filename', 'D1_interp.set', 'filepath', pwd);
testChan = 'C3';
EEG_drop = pop_select(EEG, 'rmchannel', {testChan});
EEG_back = pop_interp(EEG_drop, fullLocs, 'spherical');
iOrig = find(strcmp({EEG.chanlocs.labels}, testChan));
iBack = find(strcmp({EEG_back.chanlocs.labels}, testChan));
r = corrcoef(double(EEG.data(iOrig, :)), double(EEG_back.data(iBack, :)));
fprintf('Correlation between original and interpolated %s: %.2f\n', testChan, r(1, 2));أي قيمة أختار؟
| الإعداد | القيمة |
|---|---|
| طريقة الاستيفاء | Spherical |
| مصدر المواقع | كل القنوات من الداتاست التي قبل الحذف، أو fullLocs في السكربت |
| مكان الخطوة | بعد حذف القنوات السيئة، وقبل إعادة المرجع |
| عدد القنوات المستوفاة | قليل |
| Interpolate removed channel(s) في نافذة إعادة المرجع | ليس في مسارنا |
تأكّد
- عدد القنوات رجع كاملاً
- نفس الترتيب
- التمرين
- الإشارة منطقية
لقسم Methods
Removed channels were interpolated using spherical spline interpolation (pop_interp, EEGLAB 2026.1).