EEGLAB ببساطة

أساسيات MATLAB لـ EEGLAB

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

من الواجهة

  1. Command WindowWorkspaceCurrent Folder
  2. New ScriptHome
  3. RunEditor .mdemo_basics

السكربت

demo.srate  = 128;                              % sampling rate (samples per second)
demo.nbchan = 3;                                % number of channels
demo.pnts   = 10 * demo.srate;                  % samples per channel
demo.labels = {'Fz', 'Cz', 'Pz'};               % channel names (a cell array of text)
demo.data   = randn(demo.nbchan, demo.pnts);    % random numbers, channels x samples
size(demo.data)                                 % rows = channels, columns = samples
demo.srate                                      % one field
demo.labels{2}                                  % text of the second channel name
firstSamples = demo.data(2, 1:5)
t = (0:demo.pnts-1) / demo.srate;
t(end)
figure;
plot(t, demo.data(2, :));
xlabel('Time (s)'); ylabel('Amplitude');
title(['Channel ' demo.labels{2}]);
whos demo                                       % size and type of a variable
which plot                                      % location of a function on the path

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

تكتبالمعنىمثال من الدروس
a = 5أنشئ متغيّراً واطبع قيمتهx = 5
a = 5;نفس الشيء بلا طباعةEEG = pop_eegfiltnew(EEG, 'locutoff', 0.1);
s.nameحقل داخل structEEG.srate
m(2, 1:5)عناصر من مصفوفة بالأقواس العاديةEEG.data(1, 1:10)
c{2}محتوى خانة من cell array بالأقواس المعقوفةdemo.labels{2}
'text'نص بين علامتي تنصيص مفردة'locutoff'
%كل ما بعده في السطر تعليق لا يُنفّذ% high-pass
help nameشرح دالة في الـ Command Windowhelp pop_eegfiltnew

النسخة الكاملة: https://simplyeeglab.pages.dev/lesson/matlab-basics/

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

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