[Eeglablist] Average ERSP figure

Tarik S Bel-Bahar tarikbelbahar at gmail.com
Fri Apr 21 11:29:00 PDT 2017


Hello Nabi,
Try setting this up with STUDY, which should average them for you, and
allow you to see grand average ERSP figures.
If you try to hack it with code, you can replace the EEG.data with an
average of the single-subject averages.
to be safe,  try first making an EEG2 variable, change the .data
within in, and then feed EEG2 to the pop_newtimef function.

On Wed, Apr 19, 2017 at 3:48 PM, Nabi Rustamov <nabi.rustamov at yahoo.com> wrote:
> Hello,
> I am trying to get the average ERSP figure from 2 subjects. The script that
> I am using, creates the ERSP figures for each subject separately. Which
> command should I add to the script bellow to get the avaerage ERSP? I tryed
> to use the commands that I use for getting average ERP figure but it did not
> work. Thanks. Nabi
>
>
> [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
> MAIN='C:\\Users\\user\\Desktop\\ersp\\';
>
> SUBJ={'sbj3_' 'sbj4_'};
>
> for s=1:length(SUBJ)
>     EEG= pop_loadset([SUBJ{s},'condition1.set'], MAIN);
> %     EEG2= mean(EEG.data,3);
> %     all_erp(s,:)= squeeze(erp);
>     figure; pop_newtimef( EEG, 1, 22, [-1000  1998], [0] , 'topovec', 22,
> 'elocs', EEG.chanlocs, 'chaninfo', EEG.chaninfo, 'caption', 'Cz',
> 'baseline',[0], 'freqs', [1:100], 'plotphase', 'off', 'padratio', 1);
>
> end
>
> _______________________________________________
> 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