[Eeglablist] Trigger Timing Delays

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Jun 27 20:48:09 PDT 2014


Dear Brandon,

Try this:

% extract all event labels
eventList = {EEG.event.type}';
% identify their index numbers
eventIdx = find(strcmp(eventList, 'fix+'));
% add constant to the latencies
for n = 1:length(eventIdx)
    EEG.event(eventIdx(n)).latency = EEG.event(eventIdx(n)).latency+50;
end
% redraw eeglab
eeglab redraw

Makoto


On Tue, Jun 24, 2014 at 4:40 PM, Brandon W. Ng <
brandonng2011 at u.northwestern.edu> wrote:

> Dear EEG Lab List,
>
> I had a quick question about how to correct for trigger time delays.  My
> time delay for my study is about 50 ms, and according to the site, using
> the function erptimeshift(erp, amount of delay) should adjust the dataset
> to fix the problem, but whenever I employ the function, I get the following
> error, and I am not sure how to fix this.
>
> Is there something that I need to do (re-formatting my ERP) to fix the
> problem?  Any help would be appreciated.
>
>
> >> erptimeshift('61_ERPs.erp', 50)
> Attempt to reference field of non-structure array.
>
> Error in erptimeshift (line 52)
> fulltime = (ERP.xmax-ERP.xmin)*1000;
>
>
>
>
>  Thanks,
>
> Brandon
> --
>
> *Brandon W. Ng, M.A.*
> PhD Student in Cultural Neuroscience, University of Virginia
> BA with Dual Honors, *Phi Beta Kappa*, Northwestern University
> UVA Morris Social Neuroscience Lab
> UVA Oishi Culture and Well-Being Lab
> E-Mail: brandonng2011 at u.northwestern.edu
> Website: http://www.epernicus.com/bwn
> http://uvasocialneuroscience.com/
>
>
>
> _______________________________________________
> 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/20140627/7f73727e/attachment.html>


More information about the eeglablist mailing list