[Eeglablist] Multiple .edf datasets to EEGLAB for analysis

VARMA, MOHITH MUKUND mohith96 at connect.hku.hk
Mon Jan 14 04:37:44 PST 2019

Dear all,

I am trying to process multiple datasets of .EDF format on EEGLAB and I was
wondering could someone help me correcting the script I have compiled so
far using the tips provided here
https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts. The current
error that I get is:
Error using edfread (line 125)
No such file or directory
Error in StepOne (line 9)
EEG = edfread(setname,'/Users/mohithverma/Desktop/PSG_Data'); %
                Load the dataset
My datasets are named as 304_sleep data.edf; 305_sleep data.edf...
Your help is much appreciated! Here's the code that I have come up with so



Ns = 4;

for S = 1:Ns  % For each of the subjects

    mean_powbase = []; % Initialize the baseline spectra average over all
conditions for each subject

    setname = ['subj' int2str(S) '.edf'];  % Build dataset name

        EEG = edfread(setname,'/Users/mohithverma/Desktop/PSG_Data'); %
Load the dataset

        [ALLEEG EEG] = eeg_store(ALLEEG, EEG);  % Store the dataset in

        [ersp,itc,powbase{s}] =pop_timef( ALLEEG(s),0, 1, [-100 600], 0,
'plotitc', 'off', 'plotersp', 'off' );


Mohith M. Varma (Mo)
Graduate Research Assistant

Social & Cognitive Neuroscience Laboratory
Department of Psychology
Faculty of Social Sciences
The University of Hong Kong
Tel: (+852) 52622875
Email: mohith96 at connect.hku.hk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20190114/8e910ab2/attachment.html>

More information about the eeglablist mailing list