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

Arnaud Delorme arno at ucsd.edu
Tue Feb 26 06:19:52 PST 2008


As pointed out on the EEGLAB web page

http://www.sccn.ucsd.edu/eeglab/structtut/datastruct.html


since event latencies are stored in data points and not milliseconds, if 
you just change the sampling rate

EEG.srate = x;

Then the latency of events is automatically updated. You should also type

EEG.times = [];

so that the correct time for each data point is recomputer (the next 
time the consistency of the dataset is checked by the graphic interface 
using "EEG = eeg_chekset(EEG)"). Thanks to Thomas Ferree, Darren and 
Scott for pointing that out and sorry for my mistake.

Arno




More information about the eeglablist mailing list