[Eeglablist] EEG.event.latency
Delorme, Arnaud
adelorme at ucsd.edu
Mon Apr 6 08:58:15 PDT 2020
Hi Tim,
This is because sample 1 is time 0 in Matlab
(3179.5216….-1)/12.7140 = 250
Best wishes,
Arno
> On Apr 4, 2020, at 3:56 PM, Tim Curran <tim.curran at colorado.edu> wrote:
>
> I have a question about EEG.event latencies. A & B below show my first three events in samples (A) and sec (B) according to EEGLAB. My actual sampling rate is correctly stored as EEG.srate = 250 samples/sec
>
> A = EEG.event(1:3).latency (in samples)
> B = latency values reported by the GUI: Edit Event values (in sec)
> C = A/B (samples per sec)
>
> A B C
> 1 3179.5216 12.7140 250.0804
> 2 3221.2710 12.8810 250.0793
> 3 3262.7715 13.0470 250.0783
>
> … so why are my calculated sampling rates ~250.08 (C) rather than 250.00?
>
> This matters to me because I am trying to add new events with EEG = pop_editeventvals, which takes latency values in sec, but does not seem to store them correctly based on 250 samples/sec.
>
> thanks
> Tim
>
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
More information about the eeglablist
mailing list