[Eeglablist] changing the sample rate for EEG struct and associated events

Arnaud Delorme arno at ucsd.edu
Mon Feb 25 10:04:37 PST 2008


Hi Darren,

No, changing the sampling rate will not help. You need to manually 
change the sampling rate of all events:

newsrate = xxxx;
for i=1:length(EEG.event)
        EEG.event(i).latency = EEG.event(i).latency / EEG.srate * newsrate;
end;
EEG.srate = newsrate;

Take care,

Arno

> I have an EGI dataset that is read into EEGLAB nicely.  However, for 
> technical reasons, the sample rate is not actually what is recorded in 
> the EGI data file (due to external triggers on the EGI amps).
>
> Is there is a tidy way to change the sample rate so that EEGLAB will 
> update the event timing structures correctly?
>
> I'm currently using:
>
> % load the data into EEGLAB
> % EEG.srate = 1000,but then
> EEG.srate = 432;
> EEG = eeg_checkset(EEG);
>
> I'm not sure if this changes the event timing.




More information about the eeglablist mailing list