EEGLAB ببساطة

فلتر 1 هرتز قبل ICA ونسخ الأوزان

المحطة 4 · الدرس 4 · EEGLAB 2026.1

من الواجهة

  1. Datasets D1 mainD1 ica1hz
  2. ICA weightsYes
  3. ICA weightsNoChannels per frame
  4. EditDataset info
  5. ICA weights array or text/binary file (if any):from other datasetOK 2ALLEEG(2).icaweightsALLEEG(2).icasphereALLEEG(2).icachansind
  6. OKICA weightsYes
  7. PlotComponent mapsIn 2-D
  8. FileSave current dataset as D1_main_ica.set

السكربت

EEG_main.icaweights  = EEG_ica.icaweights;
EEG_main.icasphere   = EEG_ica.icasphere;
EEG_main.icachansind = EEG_ica.icachansind;
EEG_main.icawinv     = [];   % recomputed by eeg_checkset
EEG_main.icaact      = [];
EEG = eeg_checkset(EEG_main);
fprintf('Same weights: %d\n', isequal(EEG.icaweights, EEG_ica.icaweights));
fprintf('Largest scalp map difference: %g\n', max(abs(EEG.icawinv(:) - EEG_ica.icawinv(:))));
fprintf('ICA components: %d\n', size(EEG.icawinv, 2));
epMain = pop_rmbase(pop_epoch(EEG, {'square'}, [-0.2 0.8]), [-200 0]);
epIca  = pop_rmbase(pop_epoch(EEG_ica, {'square'}, [-0.2 0.8]), [-200 0]);
pz  = find(strcmp({EEG.chanlocs.labels}, 'Pz'));
win = epMain.times >= 300 & epMain.times <= 600;
erpMain = mean(epMain.data(pz, :, :), 3);
erpIca  = mean(epIca.data(pz, :, :), 3);
fprintf('Mean at Pz, 300-600 ms: 0.1 Hz copy %.2f uV, 1 Hz copy %.2f uV\n', ...
    mean(erpMain(win)), mean(erpIca(win)));
figure;
plot(epMain.times, erpMain, epIca.times, erpIca);
legend('Main dataset (0.1 Hz)', 'ICA copy (1 Hz)');
xlabel('Time (ms)'); ylabel('Amplitude (uV)');
EEG = pop_saveset(EEG, 'filename', 'D1_main_ica.set', 'filepath', pwd);

أي قيمة أختار؟

الإعدادالقيمة
high-pass لنسخة ICA1 هرتز
إذا بقيت المكوّنات غامضة2 هرتز
high-pass للنسخة الرئيسية0.1 هرتز بلا تغيير
ماذا تنسخicaweights و icasphere و icachansind
القنوات في النسختيننفسها تماماً وبنفس الترتيب

تأكّد

  • في النافذة الرئيسية
  • نفس الخرائط
  • تحقق السكربت
  • الـ ERP سليم

لقسم Methods

Independent component analysis (extended Infomax; Lee et al., 1999) was computed with runica ([31] components after PCA reduction to the data rank) on a copy of the data high-pass filtered at 1 Hz, and the resulting weights were applied to the 0.1 Hz high-pass filtered data.

النسخة الكاملة: https://simplyeeglab.pages.dev/lesson/ica-1hz-copy-weights/

رخصة المحتوى: CC BY-NC-SA 4.0 · MIT (code)

موقع تعليمي مستقل، غير تابع رسمياً لـ EEGLAB أو SCCN.