[Eeglablist] Recoding events

Stephen Politzer-Ahles politzerahless at gmail.com
Mon Nov 26 13:47:30 PST 2012


Hello Mary-Jane,

There should be several ways to do this with basic MATLAB code. Something
similar to this should work:

for i = 1:length(EEG.event)
    if i <= 151
        EEG.event(i) = [1 EEG.event(i).type];
    else
        EEG.event(i) = [2 EEG.event(i).type];
    end;
end;





On Fri, Nov 23, 2012 at 7:41 AM, Budd, Mary-Jane S <mbudd at essex.ac.uk>wrote:

> Dear list,
> I would like to recode event type for e.g. Events 1-150 by pre-fixing the
> type with a 1, then recode events 151-300 by pre-fixing type with 2. Is
> there a simple piece of code that will do this for me?
> Thank you
>
> ----------------------
> Dr Mary-Jane Budd
> Senior Research Officer
> Department of Psychology
> University of Essex
> Wivenhoe Park
> Colchester CO4 3SQ
> UK
>
> Room 4.726
>
> http://www.essex.ac.uk/psychology/department/people/Budd.html
>
>
> _______________________________________________
> 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
>



-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://people.ku.edu/~sjpa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20121126/85ac5366/attachment.html>


More information about the eeglablist mailing list