[Eeglablist] Latencies before and after epoching

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Sun Nov 16 14:43:07 PST 2014


Dear Camilla,

> I have tried to make a script to change the latency of all my trigs with
the name ‘8’. I want to change the latency to 90 ms earlier.

I have code for that. See below and modify accordingly.

% adding 400ms to specific events
allEvent = {EEG.event.type}';
stroopOnsetIdx  = find(strcmp(allEvent, 'VolMov_fixationbegin'));
stroopOnsetLatencyInFrame  = [EEG.event(stroopOnsetIdx).latency]';
modifiedValues = num2cell(bsxfun(@plus, stroopOnsetLatencyInFrame, 400),2);
[EEG.event(stroopOnsetIdx).latency] = modifiedValues{:};

Makoto


On Mon, Nov 10, 2014 at 9:04 AM, Camilla Rotvel <caro at eng.au.dk> wrote:

>  I have tried to make a script to change the latency of all my trigs with
> the name ‘8’. I want to change the latency to 90 ms earlier.
>
>
>
> However, I cannot see the connection between the latency before/after
> epoching. The first trig-8 is number 6 in the triglist and has the
> latencies:
>
> 1.       17224 when finding it via EEG.event(6).latency *before* epoching
>
> 2.       257 when finding it via EEG.event(1).latency *after *epoching
> for trigger-8
>
>
>
> Any suggestions ?
>
>
>
> Regards
>
> Camilla
>
>
>
> Fs = 256.
>
> ___________________________________________
>
> *Camilla Arndal Rotvel*
>
> Ph.D. student at DuPont Nutrition Biosciences
>
> Edwin Rahrs Vej 38, DK-8220 Brabrand
>
>
>
> Aarhus University
>
> Edison, Room 201, Finlandsgade 22, DK-8200 Aarhus N
>
>
>
> Phone    :  + 45 21543280
>
> E-mail     :  caro at eng.au.dk
>
> ___________________________________________
>
>
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141116/54eef906/attachment.html>


More information about the eeglablist mailing list