[Eeglablist] putting ERP data into matrix

Alpay Koc Alpay.Koc at mail.uh.edu
Mon Feb 9 10:23:21 PST 2004


Hi,

Scripts below could help:

nchan=15;  %channel number
erp=reshape(EEG.data(nchan,:,:),size(EEG.data,2),size(EEG.data,3));  % epoch by
epoch channel data
nepoch=1;
erp1=erp(:,nepoch);    % eg. first epoch
aerp=mean(erp,2);    % Averaged ERP, i.e. avg of all epochs or mean(EEG.data,3) for
all channels
figure;plot(EEG.times,aerp)  % plot average ERP





kazuyo tanji wrote:

> Hi, all
>
> I am trying to do ERS analysis using EEGLAB. I need to
> subtract ERP from rawdata epoch by epoch. Can anyone
> please tell me how I can do this?
>
> If I am right rawdata can be obtained by EEG.data(:,:,n)
> for epoch n, but I am at a loss how I can put calculated
> ERP data into matlab variables.
>
> Thanks in advance,
>
> Kazu
>
> _______________________________________________
> Eeglablist mailing list Eeglablist at sccn.ucsd.edu
> Eeglablist page: http://www.sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsub at sccn.ucsd.edu
> To switch to digest mode, send an empty email to eeglablist-digest at sccn.ucsd.edu

--
Alpay Koc






More information about the Eeglablist mailing list